diff options
Diffstat (limited to 'src/js_native_api_v8.h')
-rw-r--r-- | src/js_native_api_v8.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_native_api_v8.h b/src/js_native_api_v8.h index 9d896ae1f2f..88c59869a07 100644 --- a/src/js_native_api_v8.h +++ b/src/js_native_api_v8.h @@ -150,7 +150,7 @@ inline napi_value JsValueFromV8LocalValue(v8::Local<v8::Value> local) { inline v8::Local<v8::Value> V8LocalValueFromJsValue(napi_value v) { v8::Local<v8::Value> local; - memcpy(&local, &v, sizeof(v)); + memcpy(static_cast<void*>(&local), &v, sizeof(v)); return local; } |