projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1937765
)
gobject/gtype.h: Fix _G_TYPE_CVH macro. Fixes #597194
author
Edward Hervey
<bilboed@bilboed.com>
Sat, 3 Oct 2009 10:37:36 +0000
(12:37 +0200)
committer
Edward Hervey
<bilboed@bilboed.com>
Sat, 3 Oct 2009 14:17:17 +0000
(16:17 +0200)
If __val doesn't exist, we shouldn't do any other checks.
gobject/gtype.h
patch
|
blob
|
history
diff --git
a/gobject/gtype.h
b/gobject/gtype.h
index
7920ec2
..
860b518
100644
(file)
--- a/
gobject/gtype.h
+++ b/
gobject/gtype.h
@@
-1497,7
+1497,7
@@
G_GNUC_INTERNAL void g_signal_init (void); /* sync with gsignal.c *
GValue *__val = (GValue*) vl; GType __t = gt; gboolean __r; \
if (!__val) \
__r = FALSE; \
-
if (__val->g_type == __t)
\
+
else if (__val->g_type == __t)
\
__r = TRUE; \
else \
__r = g_type_check_value_holds (__val, __t); \