Commit 3b6c7f04 authored by kozyatinskiy's avatar kozyatinskiy Committed by Commit bot

[inspector] fixed one more size_t -> int conversion

This problem was detected only on linux64_gyp bot.
It's safe to convert length string into int from size_t.

R=dgozman@chromium.org

Review-Url: https://codereview.chromium.org/2402583004
Cr-Commit-Position: refs/heads/master@{#40101}
parent f28e5dcb
......@@ -157,12 +157,12 @@ v8::Local<v8::String> ToString(v8::Isolate* isolate,
if (string.is8Bit())
return v8::String::NewFromOneByte(isolate, string.characters8(),
v8::NewStringType::kNormal,
string.length())
static_cast<int>(string.length()))
.ToLocalChecked();
else
return v8::String::NewFromTwoByte(isolate, string.characters16(),
v8::NewStringType::kNormal,
string.length())
static_cast<int>(string.length()))
.ToLocalChecked();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment