mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-21 19:54:51 +02:00
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:
parent
65dda096fe
commit
041a14df58
@ -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>
|
Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
|
||||||
|
|
||||||
* Released GLib 1.1.1
|
* Released GLib 1.1.1
|
||||||
|
@ -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>
|
Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
|
||||||
|
|
||||||
* Released GLib 1.1.1
|
* Released GLib 1.1.1
|
||||||
|
@ -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>
|
Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
|
||||||
|
|
||||||
* Released GLib 1.1.1
|
* Released GLib 1.1.1
|
||||||
|
@ -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>
|
Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
|
||||||
|
|
||||||
* Released GLib 1.1.1
|
* Released GLib 1.1.1
|
||||||
|
@ -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>
|
Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
|
||||||
|
|
||||||
* Released GLib 1.1.1
|
* Released GLib 1.1.1
|
||||||
|
@ -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>
|
Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
|
||||||
|
|
||||||
* Released GLib 1.1.1
|
* Released GLib 1.1.1
|
||||||
|
@ -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>
|
Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
|
||||||
|
|
||||||
* Released GLib 1.1.1
|
* Released GLib 1.1.1
|
||||||
|
@ -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>
|
Tue Aug 4 19:54:06 PDT 1998 Shawn T. Amundson <amundson@gkt.org>
|
||||||
|
|
||||||
* Released GLib 1.1.1
|
* Released GLib 1.1.1
|
||||||
|
@ -296,14 +296,14 @@ main (int argc,
|
|||||||
g_free (string);
|
g_free (string);
|
||||||
|
|
||||||
/* type sizes */
|
/* 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);
|
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);
|
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);
|
TEST (NULL, sizeof (gint32) == 4);
|
||||||
#ifdef HAVE_GINT64
|
#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);
|
TEST (NULL, sizeof (gint64) == 8);
|
||||||
#endif /* HAVE_GINT64 */
|
#endif /* HAVE_GINT64 */
|
||||||
g_print ("\n");
|
g_print ("\n");
|
||||||
|
@ -296,14 +296,14 @@ main (int argc,
|
|||||||
g_free (string);
|
g_free (string);
|
||||||
|
|
||||||
/* type sizes */
|
/* 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);
|
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);
|
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);
|
TEST (NULL, sizeof (gint32) == 4);
|
||||||
#ifdef HAVE_GINT64
|
#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);
|
TEST (NULL, sizeof (gint64) == 8);
|
||||||
#endif /* HAVE_GINT64 */
|
#endif /* HAVE_GINT64 */
|
||||||
g_print ("\n");
|
g_print ("\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user