#
#	glib/tests/gvariant.c
#	fix "cannot do pointer arithmetic on operand of unknown size" and
#	"integral constant expression expected" errors
#
--- glib-2.23.5/glib/tests/gvariant.c.old	2010-03-08 07:33:26.000000000 -0800
+++ glib-2.23.5/glib/tests/gvariant.c	2010-03-09 21:44:38.451221041 -0800
@@ -1251,7 +1251,7 @@
   if (size == 0)
     return NULL;
 
-  return g_malloc (size + flavour) + flavour;
+  return (guchar *) g_malloc (size + flavour) + flavour;
 }
 
 static void
@@ -3337,7 +3337,7 @@
 test_hashing (void)
 {
   const gint n_items = 4096;
-  GVariant *items[n_items];
+  GVariant *items[4096];
   GHashTable *table;
   gint i;
 
