diff options
-rwxr-xr-x | system/include/emscripten/wire.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/system/include/emscripten/wire.h b/system/include/emscripten/wire.h index d4efc3ac..f782d49e 100755 --- a/system/include/emscripten/wire.h +++ b/system/include/emscripten/wire.h @@ -241,11 +241,7 @@ namespace emscripten { } static shared_ptr fromWireType(WireType wt) { - if (wt) { - return shared_ptr(*wt); - } else { - return shared_ptr(); - } + return *wt; } static void destroy(WireType p) { |