From: George Lebl Date: Wed, 5 Aug 1998 08:15:58 +0000 (+0000) Subject: fix 64-bitness in g_prints, sizeof doesn't seem to return int so I cast it X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=041a14df580f901b3123d3ad7a82f3a8dced590a;p=dana%2Fcg-glib.git 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 * testglib.c: fix 64-bitness in g_prints, sizeof doesn't seem to return int so I cast it for printing, probably just cosmetic --- diff --git a/ChangeLog b/ChangeLog index 254ab62b..1322bd2c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Aug 05 01:15:36 1998 George Lebl + + * testglib.c: fix 64-bitness in g_prints, sizeof doesn't + seem to return int so I cast it for printing, probably + just cosmetic + Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson * Released GLib 1.1.1 diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 254ab62b..1322bd2c 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +Wed Aug 05 01:15:36 1998 George Lebl + + * testglib.c: fix 64-bitness in g_prints, sizeof doesn't + seem to return int so I cast it for printing, probably + just cosmetic + Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson * Released GLib 1.1.1 diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 254ab62b..1322bd2c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Wed Aug 05 01:15:36 1998 George Lebl + + * testglib.c: fix 64-bitness in g_prints, sizeof doesn't + seem to return int so I cast it for printing, probably + just cosmetic + Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson * Released GLib 1.1.1 diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 254ab62b..1322bd2c 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +Wed Aug 05 01:15:36 1998 George Lebl + + * testglib.c: fix 64-bitness in g_prints, sizeof doesn't + seem to return int so I cast it for printing, probably + just cosmetic + Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson * Released GLib 1.1.1 diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 254ab62b..1322bd2c 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +Wed Aug 05 01:15:36 1998 George Lebl + + * testglib.c: fix 64-bitness in g_prints, sizeof doesn't + seem to return int so I cast it for printing, probably + just cosmetic + Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson * Released GLib 1.1.1 diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 254ab62b..1322bd2c 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Wed Aug 05 01:15:36 1998 George Lebl + + * testglib.c: fix 64-bitness in g_prints, sizeof doesn't + seem to return int so I cast it for printing, probably + just cosmetic + Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson * Released GLib 1.1.1 diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 254ab62b..1322bd2c 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Wed Aug 05 01:15:36 1998 George Lebl + + * testglib.c: fix 64-bitness in g_prints, sizeof doesn't + seem to return int so I cast it for printing, probably + just cosmetic + Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson * Released GLib 1.1.1 diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 254ab62b..1322bd2c 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Wed Aug 05 01:15:36 1998 George Lebl + + * testglib.c: fix 64-bitness in g_prints, sizeof doesn't + seem to return int so I cast it for printing, probably + just cosmetic + Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson * Released GLib 1.1.1 diff --git a/testglib.c b/testglib.c index c766fc05..2b694cdc 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"); diff --git a/tests/testglib.c b/tests/testglib.c index c766fc05..2b694cdc 100644 --- a/tests/testglib.c +++ b/tests/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");