patch-geo_drgeo_figure_cc 620 B

123456789101112131415161718192021222324
  1. $OpenBSD: patch-geo_drgeo_figure_cc,v 1.2 2017/05/04 19:45:27 espie Exp $
  2. Index: geo/drgeo_figure.cc
  3. --- geo/drgeo_figure.cc.orig
  4. +++ geo/drgeo_figure.cc
  5. @@ -48,7 +48,7 @@
  6. #include "drgeo_dialog.h"
  7. #include "traite.h"
  8. -extern struct
  9. +extern struct fooclang
  10. {
  11. drgeoPoint mouse;
  12. drgeoFigure *figure;
  13. @@ -1044,7 +1044,7 @@ drgeoFigure::getKeyFromValueOnHash (gpointer value)
  14. return NULL;
  15. else
  16. // data.key is a * gchar get it content as a gpointer
  17. - return GINT_TO_POINTER (strtol ((gchar *) data.key, NULL, 16));
  18. + return GUINT_TO_POINTER (strtoul ((gchar *) data.key, NULL, 16));
  19. }
  20. void