From 31b9c2f589cde93d5829e05543d3a015162b501c Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 17 Mar 2024 12:34:09 +0000 Subject: [PATCH] girparser: Make sizes in integer_aliases more obviously correct We don't actually need to use the Meson-detected size macros here, because the result of `sizeof()` is an integer constant expression. No functional change. Signed-off-by: Simon McVittie --- girepository/girparser.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/girepository/girparser.c b/girepository/girparser.c index b5d8fc710..844d0c3aa 100644 --- a/girepository/girparser.c +++ b/girepository/girparser.c @@ -449,16 +449,16 @@ typedef struct { } IntegerAliasInfo; static IntegerAliasInfo integer_aliases[] = { - { "gchar", SIZEOF_CHAR, 1 }, - { "guchar", SIZEOF_CHAR, 0 }, - { "gshort", SIZEOF_SHORT, 1 }, - { "gushort", SIZEOF_SHORT, 0 }, - { "gint", SIZEOF_INT, 1 }, - { "guint", SIZEOF_INT, 0 }, - { "glong", SIZEOF_LONG, 1 }, - { "gulong", SIZEOF_LONG, 0 }, - { "gssize", GLIB_SIZEOF_SIZE_T, 1 }, - { "gsize", GLIB_SIZEOF_SIZE_T, 0 }, + { "gchar", sizeof (gchar), 1 }, + { "guchar", sizeof (guchar), 0 }, + { "gshort", sizeof (gshort), 1 }, + { "gushort", sizeof (gushort), 0 }, + { "gint", sizeof (gint), 1 }, + { "guint", sizeof (guint), 0 }, + { "glong", sizeof (glong), 1 }, + { "gulong", sizeof (gulong), 0 }, + { "gssize", sizeof (gssize), 1 }, + { "gsize", sizeof (gsize), 0 }, { "gintptr", sizeof (gintptr), 1 }, { "guintptr", sizeof (guintptr), 0 }, };