diff options
Diffstat (limited to 'glib/testglib.c')
-rw-r--r-- | glib/testglib.c | 10 |
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; |