mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
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 <walters@verbum.org> https://bugzilla.gnome.org/show_bug.cgi?id=661546
This commit is contained in:
parent
3a7960f757
commit
16292dd753
@ -3358,8 +3358,8 @@ $ac_cv_sizeof_int)
|
|||||||
gintptr_modifier='""'
|
gintptr_modifier='""'
|
||||||
gintptr_format='"i"'
|
gintptr_format='"i"'
|
||||||
guintptr_format='"u"'
|
guintptr_format='"u"'
|
||||||
glib_gpi_cast=''
|
glib_gpi_cast='gint'
|
||||||
glib_gpui_cast=''
|
glib_gpui_cast='guint'
|
||||||
;;
|
;;
|
||||||
$ac_cv_sizeof_long)
|
$ac_cv_sizeof_long)
|
||||||
glib_intptr_type_define=long
|
glib_intptr_type_define=long
|
||||||
|
Loading…
Reference in New Issue
Block a user