summaryrefslogtreecommitdiff
path: root/gi/value.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gi/value.cpp')
-rw-r--r--gi/value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/value.cpp b/gi/value.cpp
index 5fa0a208..2e2f49aa 100644
--- a/gi/value.cpp
+++ b/gi/value.cpp
@@ -1030,7 +1030,7 @@ gjs_value_from_g_value_internal(JSContext *context,
else
obj = BoxedInstance::new_for_c_struct(context, info, gboxed);
} else if (type == GI_INFO_TYPE_UNION) {
- obj = gjs_union_from_c_union(context, info, gboxed);
+ obj = UnionInstance::new_for_c_union(context, info, gboxed);
} else {
gjs_throw(context, "Unexpected introspection type %d for %s",
info.type(), g_type_name(gtype));