Skip to content
Prev Previous commit
Next Next commit
Fixed wrong calc of typedarray offset (result not in use)
  • Loading branch information
kenny-y committed Jun 29, 2018
commit 75e6e422b33184e736e0c225bcbff1aef5d26117
2 changes: 1 addition & 1 deletion benchmark/napi/function_args/binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void CallWithTypedarray(const FunctionCallbackInfo<Value>& args) {
assert(view->HasBuffer());
Local<ArrayBuffer> buffer = view->Buffer();
ArrayBuffer::Contents contents = buffer->GetContents();
uint32_t* data = static_cast<uint32_t*>(contents.Data()) + byte_offset;
uint32_t* data = static_cast<uint32_t*>(contents.Data() + byte_offset);
}
}

Expand Down