diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2019-05-09 12:52:38 -0700 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2019-05-13 13:43:26 -0700 |
commit | b6bfc193788b1838bee73d584fe089e1104b9f88 (patch) | |
tree | 751f652414b55521271b2acd8e8edb05bbdf9ee4 /src/js_native_api_v8.h | |
parent | d3c2287e59fce447bc4624821bd0ebb394014b90 (diff) | |
download | node-new-b6bfc193788b1838bee73d584fe089e1104b9f88.tar.gz |
src: remove util-inl.h from header files
Its intended that *-inl.h header files are only included into the src
files that call the inline methods. Explicitly include it into the files
that need it.
PR-URL: https://github.com/nodejs/node/pull/27631
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
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 9d896ae1f2..88c59869a0 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; } |