gobject/gclosure.c: Add type cast for int_val = value
authorChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 6 Oct 2011 07:37:52 +0000 (15:37 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 6 Oct 2011 07:37:52 +0000 (15:37 +0800)
This will silence compiler warnings on Visual C++.

(Sorry for the bad fix just now.)

gobject/gclosure.c

index 6893484..07f0286 100644 (file)
@@ -1032,7 +1032,7 @@ value_to_ffi_type (const GValue *gvalue,
 static void
 value_from_ffi_type (GValue *gvalue, gpointer *value)
 {
-  ffi_arg *int_val = value;
+  ffi_arg *int_val = (ffi_arg *)value;
 
   switch (g_type_fundamental (G_VALUE_TYPE (gvalue)))
     {