fix the completion test
[platform/upstream/glib.git] / tests / type-test.c
index 5163b1f..cbaaa7d 100644 (file)
@@ -41,6 +41,7 @@ main (int   argc,
   gushort gus;
   guint gui;
   gulong gul;
+  gsize gsz;
   gshort gs;
   gint gi;
   glong gl;
@@ -83,6 +84,11 @@ main (int   argc,
   gul++;
   g_assert (gul == 0);
 
+  gsz = G_MAXSIZE;
+  gsz++;
+  
+  g_assert (gsz == 0);
+
   gs = G_MAXSHORT;
   gs++;
   g_assert (gs == G_MINSHORT);
@@ -127,7 +133,7 @@ main (int   argc,
 
 #define FORMATSIZE "%" G_GSSIZE_FORMAT " %" G_GSIZE_FORMAT "\n"
   string = g_strdup_printf (FORMATSIZE, gsst1, gst1);
-  sscanf (string, FORMAT64, &gsst2, &gst2);
+  sscanf (string, FORMATSIZE, &gsst2, &gst2);
   g_free (string);
   g_assert (gsst1 == gsst2);
   g_assert (gst1 == gst2);