diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2014-04-27 20:55:44 -0400 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2018-05-08 23:22:38 -0700 |
commit | 6f7b70836939a3da3a92f2e76ae96cffbd79b25d (patch) | |
tree | b2a42350bff296e1744b6c19e7da7b5681dd7fb2 | |
parent | 4c2579293e4b1c2fe07fc571cc715df179541d33 (diff) | |
download | gjs-wip/xclaesse/729082-crash-when-callbacks-vfuncs-have-out-arguments.tar.gz |
Fix crash when callbacks have out argumentswip/xclaesse/729082-crash-when-callbacks-vfuncs-have-out-arguments
https://bugzilla.gnome.org/show_bug.cgi?id=729082
-rw-r--r-- | gi/function.cpp | 4 |
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++; |