Index: test/inspector/inspector-test.cc |
diff --git a/test/inspector/inspector-test.cc b/test/inspector/inspector-test.cc |
index f2b24b8ddf65e826592a5ead958f157e43810429..b7165acc2a57293bd96ef644bfdd139f32e351a4 100644 |
--- a/test/inspector/inspector-test.cc |
+++ b/test/inspector/inspector-test.cc |
@@ -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(); |
} |