[glib] gobject/gclosure.c: Add type cast for int_val = value
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gobject/gclosure.c: Add type cast for int_val = value
- Date: Thu, 6 Oct 2011 07:37:58 +0000 (UTC)
commit e80d8f0c2304ca471e6643dec846153307eee0fa
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Oct 6 15:37:52 2011 +0800
gobject/gclosure.c: Add type cast for int_val = value
This will silence compiler warnings on Visual C++.
(Sorry for the bad fix just now.)
gobject/gclosure.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/gclosure.c b/gobject/gclosure.c
index 6893484..07f0286 100644
--- a/gobject/gclosure.c
+++ b/gobject/gclosure.c
@@ -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)))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]