mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-08 18:24:04 +02:00
gtypelib: Use proper formatting for sizeof value
That returns a size_t, so we should use the z printf directive.
This commit is contained in:
@@ -442,7 +442,7 @@ gi_typelib_check_format (void)
|
|||||||
#define CHECK_SIZE(s,n) \
|
#define CHECK_SIZE(s,n) \
|
||||||
if (sizeof(s) != n) \
|
if (sizeof(s) != n) \
|
||||||
{ \
|
{ \
|
||||||
g_printerr ("sizeof("#s") is expected to be %d but is %"G_GSIZE_FORMAT".\n", \
|
g_printerr ("sizeof("#s") is expected to be %d but is %zu.\n", \
|
||||||
n, sizeof (s)); \
|
n, sizeof (s)); \
|
||||||
size_check_ok = FALSE; \
|
size_check_ok = FALSE; \
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user