[glib/wip/otte/interface-types: 441/448] closure: Avoid calling G_VALUE_TYPE twice
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/otte/interface-types: 441/448] closure: Avoid calling G_VALUE_TYPE twice
- Date: Sat, 24 Oct 2020 03:35:48 +0000 (UTC)
commit b6dbbc4b34b66535e80a2b381151d4d050ffa330
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jul 12 15:18:04 2020 -0400
closure: Avoid calling G_VALUE_TYPE twice
Review feedback by Philipp Withnall.
gobject/gclosure.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gobject/gclosure.c b/gobject/gclosure.c
index b4edc1755..3f2713a12 100644
--- a/gobject/gclosure.c
+++ b/gobject/gclosure.c
@@ -1323,7 +1323,7 @@ restart:
g_value_take_variant (gvalue, *(gpointer*)value);
break;
case G_TYPE_INTERFACE:
- type = g_type_interface_instantiable_prerequisite (G_VALUE_TYPE (gvalue));
+ type = g_type_interface_instantiable_prerequisite (type);
if (type)
goto restart;
G_GNUC_FALLTHROUGH;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]