summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2014-04-27 20:55:44 -0400
committerPhilip Chimento <philip.chimento@gmail.com>2018-05-08 23:22:38 -0700
commit6f7b70836939a3da3a92f2e76ae96cffbd79b25d (patch)
treeb2a42350bff296e1744b6c19e7da7b5681dd7fb2
parent4c2579293e4b1c2fe07fc571cc715df179541d33 (diff)
downloadgjs-wip/xclaesse/729082-crash-when-callbacks-vfuncs-have-out-arguments.tar.gz
https://bugzilla.gnome.org/show_bug.cgi?id=729082
-rw-r--r--gi/function.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gi/function.cpp b/gi/function.cpp
index 94129802..7748399d 100644
--- a/gi/function.cpp
+++ b/gi/function.cpp
@@ -357,7 +357,7 @@ gjs_callback_closure(ffi_cif *cif,
GJS_ARGUMENT_ARGUMENT,
GI_TRANSFER_NOTHING,
true,
- *(GIArgument **)args[i + c_args_offset]))
+ reinterpret_cast<GArgument *>(args[i + c_args_offset])))
goto out;
break;
@@ -410,7 +410,7 @@ gjs_callback_closure(ffi_cif *cif,
GJS_ARGUMENT_ARGUMENT,
GI_TRANSFER_NOTHING,
true,
- *(GIArgument **)args[i + c_args_offset]))
+ reinterpret_cast<GArgument *>(args[i + c_args_offset])))
goto out;
elem_idx++;