Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
fix 64-bitness in g_prints, sizeof doesn't seem to return int so I ca…
Browse files Browse the repository at this point in the history
…st 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
  • Loading branch information
George Lebl authored and George Lebl committed Aug 5, 1998
1 parent 65dda09 commit 041a14d
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 8 deletions.
6 changes: 6 additions & 0 deletions 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
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.pre-2-0
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.pre-2-10
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.pre-2-12
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.pre-2-2
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.pre-2-4
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.pre-2-6
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.pre-2-8
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions testglib.c
Expand Up @@ -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");
Expand Down
8 changes: 4 additions & 4 deletions tests/testglib.c
Expand Up @@ -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");
Expand Down

0 comments on commit 041a14d

Please sign in to comment.