summaryrefslogtreecommitdiff
path: root/glib/testglib.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@src.gnome.org>1998-07-03 20:33:16 +0000
committerCarsten Haitzler <raster@src.gnome.org>1998-07-03 20:33:16 +0000
commit4389781ea1ec28ddcfc7a2c7f543ce7405d34f31 (patch)
tree924b41dff9752c6dd7f91fdea0e5b4f51135c302 /glib/testglib.c
parent0da6bdc3304d7fcd0d37e04a117804b229990d1f (diff)
downloadgtk+-themes.tar.gz
Wheee now others can get to play :)themes
Wheee now others can get to play :)
Diffstat (limited to 'glib/testglib.c')
-rw-r--r--glib/testglib.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/glib/testglib.c b/glib/testglib.c
index d4bd85a530..4c223667ac 100644
--- a/glib/testglib.c
+++ b/glib/testglib.c
@@ -108,9 +108,9 @@ main (int argc,
GTree *tree;
char chars[62];
- g_print ("checking size of gint8...%d (should be 1)\n", sizeof (gint8));
- g_print ("checking size of gint16...%d (should be 2)\n", sizeof (gint16));
- g_print ("checking size of gint32...%d (should be 4)\n", sizeof (gint32));
+ g_print ("checking size of gint8...%ld (should be 1)\n", (glong)sizeof (gint8));
+ g_print ("checking size of gint16...%ld (should be 2)\n", (glong)sizeof (gint16));
+ g_print ("checking size of gint32...%ld (should be 4)\n", (glong)sizeof (gint32));
g_print ("checking doubly linked lists...");
@@ -126,6 +126,10 @@ main (int argc,
g_error ("Regular insert failed");
}
+ for (i = 0; i < 10; i++)
+ if(g_list_position(list, g_list_nth (list, i)) != i)
+ g_error("g_list_position does not seem to be the inverse of g_list_nth\n");
+
g_list_free (list);
list = NULL;