diff --git a/src/util-inl.h b/src/util-inl.h index e945c614d49e81..9689fd2088cc01 100644 --- a/src/util-inl.h +++ b/src/util-inl.h @@ -211,10 +211,9 @@ inline v8::Local OneByteString(v8::Isolate* isolate, inline v8::Local OneByteString(v8::Isolate* isolate, const unsigned char* data, int length) { - return v8::String::NewFromOneByte(isolate, - reinterpret_cast(data), - v8::NewStringType::kNormal, - length).ToLocalChecked(); + return v8::String::NewFromOneByte( + isolate, data, v8::NewStringType::kNormal, length) + .ToLocalChecked(); } void SwapBytes16(char* data, size_t nbytes) {