mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01: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:
parent
25ae968fc2
commit
6ef67b9a0d
@ -442,7 +442,7 @@ gi_typelib_check_format (void)
|
||||
#define CHECK_SIZE(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)); \
|
||||
size_check_ok = FALSE; \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user