diff options
author | George Lebl <jirka@5z.com> | 1998-08-05 08:15:58 +0000 |
---|---|---|
committer | George Lebl <jirka@src.gnome.org> | 1998-08-05 08:15:58 +0000 |
commit | 041a14df580f901b3123d3ad7a82f3a8dced590a (patch) | |
tree | c64f75ae06e6eaed813eda388ec7f7e56b59c84f /testglib.c | |
parent | 65dda096fe274c5753b221f107e6e45cbe00e0a5 (diff) | |
download | glib-041a14df580f901b3123d3ad7a82f3a8dced590a.tar.gz |
fix 64-bitness in g_prints, sizeof doesn't seem to return int so I cast it
Wed Aug 05 01:15:36 1998 George Lebl <jirka@5z.com>
* testglib.c: fix 64-bitness in g_prints, sizeof doesn't
seem to return int so I cast it for printing, probably
just cosmetic
Diffstat (limited to 'testglib.c')
-rw-r--r-- | testglib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testglib.c b/testglib.c index c766fc053..2b694cdcb 100644 --- a/testglib.c +++ b/testglib.c @@ -296,14 +296,14 @@ main (int argc, g_free (string); /* type sizes */ - g_print ("checking size of gint8: %d", sizeof (gint8)); + g_print ("checking size of gint8: %d", (int)sizeof (gint8)); TEST (NULL, sizeof (gint8) == 1); - g_print ("\nchecking size of gint16: %d", sizeof (gint16)); + g_print ("\nchecking size of gint16: %d", (int)sizeof (gint16)); TEST (NULL, sizeof (gint16) == 2); - g_print ("\nchecking size of gint32: %d", sizeof (gint32)); + g_print ("\nchecking size of gint32: %d", (int)sizeof (gint32)); TEST (NULL, sizeof (gint32) == 4); #ifdef HAVE_GINT64 - g_print ("\nchecking size of gint64: %d", sizeof (gint64)); + g_print ("\nchecking size of gint64: %d", (int)sizeof (gint64)); TEST (NULL, sizeof (gint64) == 8); #endif /* HAVE_GINT64 */ g_print ("\n"); |