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
This commit is contained in:
George Lebl 1998-08-05 08:15:58 +00:00 committed by George Lebl
parent 65dda096fe
commit 041a14df58
10 changed files with 56 additions and 8 deletions

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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");

View 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");