From: Bruno Haible Date: Sat, 23 May 2009 16:51:11 +0000 (+0000) Subject: Avoid gcc warning "cast from pointer to integer of different size". X-Git-Tag: v0.18~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=676ae4a8fc4f836e43c4ac570f3c00c4ae9ff3c7;p=thirdparty%2Fgettext.git Avoid gcc warning "cast from pointer to integer of different size". --- diff --git a/gnulib-local/ChangeLog b/gnulib-local/ChangeLog index cf4968dbd..935caed72 100644 --- a/gnulib-local/ChangeLog +++ b/gnulib-local/ChangeLog @@ -1,3 +1,10 @@ +2009-05-23 Bruno Haible + + Avoid gcc warning "cast from pointer to integer of different size". + * lib/glibconfig.in.h (GPOINTER_TO_INT, GINT_TO_POINTER): Cast through + intptr_t. + (GPOINTER_TO_UINT, GUINT_TO_POINTER: Cast through uintptr_t. + 2009-05-01 Bruno Haible Avoid compiler warnings when redefining macros defined by . diff --git a/gnulib-local/lib/glibconfig.in.h b/gnulib-local/lib/glibconfig.in.h index 45311dbd2..9a73ea20d 100644 --- a/gnulib-local/lib/glibconfig.in.h +++ b/gnulib-local/lib/glibconfig.in.h @@ -40,11 +40,11 @@ typedef uint32_t guint32; typedef size_t gsize; typedef ssize_t gssize; -#define GPOINTER_TO_INT(p) ((gint) (p)) -#define GPOINTER_TO_UINT(p) ((guint) (p)) +#define GPOINTER_TO_INT(p) ((gint) (intptr_t) (p)) +#define GPOINTER_TO_UINT(p) ((guint) (uintptr_t) (p)) -#define GINT_TO_POINTER(i) ((gpointer) (i)) -#define GUINT_TO_POINTER(u) ((gpointer) (u)) +#define GINT_TO_POINTER(i) ((gpointer) (intptr_t) (i)) +#define GUINT_TO_POINTER(u) ((gpointer) (uintptr_t) (u)) #define g_memmove memmove