mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
girparser: Don't assume sizeof(size_t) == sizeof(void *)
We don't actually need to use the results of configure-time checks here: sizeof is a perfectly reasonable integer constant expression, so we can use that directly. Helps: https://gitlab.gnome.org/GNOME/glib/-/issues/2842 Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
e64a93269d
commit
d2a6c379e8
@ -459,8 +459,8 @@ static IntegerAliasInfo integer_aliases[] = {
|
||||
{ "gulong", SIZEOF_LONG, 0 },
|
||||
{ "gssize", GLIB_SIZEOF_SIZE_T, 1 },
|
||||
{ "gsize", GLIB_SIZEOF_SIZE_T, 0 },
|
||||
{ "gintptr", GLIB_SIZEOF_SIZE_T, 1 },
|
||||
{ "guintptr", GLIB_SIZEOF_SIZE_T, 0 },
|
||||
{ "gintptr", sizeof (gintptr), 1 },
|
||||
{ "guintptr", sizeof (guintptr), 0 },
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
|
Loading…
Reference in New Issue
Block a user