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:
Marco Trevisan (Treviño) 2024-01-16 02:03:12 +01:00
parent 25ae968fc2
commit 6ef67b9a0d

View File

@ -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; \
}