Fix the fix for G*_TO_POINTER casts on 32 bits
authorChristian Persch <chpe@gnome.org>
Thu, 17 Nov 2011 13:21:24 +0000 (14:21 +0100)
committerChristian Persch <chpe@gnome.org>
Thu, 17 Nov 2011 13:24:09 +0000 (14:24 +0100)
The 'fix' from commit 16292dd753cb63f8ccb2267644aefbd2632dd52c broke the
build on 32 bit because it was missing the parentheses around "gint" / "guint"
in glib_gp[u]i_cast.

https://bugzilla.gnome.org/show_bug.cgi?id=661546

configure.ac

index 84b41e3..5ee3b2e 100644 (file)
@@ -3360,8 +3360,8 @@ $ac_cv_sizeof_int)
   gintptr_modifier='""'
   gintptr_format='"i"'
   guintptr_format='"u"'
-  glib_gpi_cast='gint'
-  glib_gpui_cast='guint'
+  glib_gpi_cast='(gint)'
+  glib_gpui_cast='(guint)'
   ;;
 $ac_cv_sizeof_long)
   glib_intptr_type_define=long