fix 64-bitness in g_prints, sizeof doesn't seem to return int so I cast it
authorGeorge Lebl <jirka@5z.com>
Wed, 5 Aug 1998 08:15:58 +0000 (08:15 +0000)
committerGeorge Lebl <jirka@src.gnome.org>
Wed, 5 Aug 1998 08:15:58 +0000 (08:15 +0000)
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

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
testglib.c
tests/testglib.c

index 254ab62..1322bd2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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
+
 Tue Aug  4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
 
        * Released GLib 1.1.1
index 254ab62..1322bd2 100644 (file)
@@ -1,3 +1,9 @@
+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
+
 Tue Aug  4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
 
        * Released GLib 1.1.1
index 254ab62..1322bd2 100644 (file)
@@ -1,3 +1,9 @@
+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
+
 Tue Aug  4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
 
        * Released GLib 1.1.1
index 254ab62..1322bd2 100644 (file)
@@ -1,3 +1,9 @@
+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
+
 Tue Aug  4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
 
        * Released GLib 1.1.1
index 254ab62..1322bd2 100644 (file)
@@ -1,3 +1,9 @@
+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
+
 Tue Aug  4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
 
        * Released GLib 1.1.1
index 254ab62..1322bd2 100644 (file)
@@ -1,3 +1,9 @@
+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
+
 Tue Aug  4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
 
        * Released GLib 1.1.1
index 254ab62..1322bd2 100644 (file)
@@ -1,3 +1,9 @@
+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
+
 Tue Aug  4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
 
        * Released GLib 1.1.1
index 254ab62..1322bd2 100644 (file)
@@ -1,3 +1,9 @@
+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
+
 Tue Aug  4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
 
        * Released GLib 1.1.1
index c766fc0..2b694cd 100644 (file)
@@ -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");
index c766fc0..2b694cd 100644 (file)
@@ -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");