From 16292dd753cb63f8ccb2267644aefbd2632dd52c Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 6 Oct 2011 11:18:03 -0300 Subject: [PATCH] Fix G*_TO_POINTER casts on 32 bits If we don't do the cast to the proper size in 32 bits, things like below doesn't work: uint8_t u = 20; void *p; p = GUINT_TO_POINTER(u); Signed-off-by: Colin Walters https://bugzilla.gnome.org/show_bug.cgi?id=661546 --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 847c4f0f8..eb731d341 100644 --- a/configure.ac +++ b/configure.ac @@ -3358,8 +3358,8 @@ $ac_cv_sizeof_int) gintptr_modifier='""' gintptr_format='"i"' guintptr_format='"u"' - glib_gpi_cast='' - glib_gpui_cast='' + glib_gpi_cast='gint' + glib_gpui_cast='guint' ;; $ac_cv_sizeof_long) glib_intptr_type_define=long