Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index bdf93b92a100fbdcf2c565963333f8cd8b98f153..682125e3af5f90ae53d284f4cad85f36238cb015 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -725,7 +725,7 @@ Handle<String> Factory::EmergencyNewError(const char* type, |
MaybeObject* maybe_arg = args->GetElement(i); |
Handle<String> arg_str(reinterpret_cast<String*>(maybe_arg)); |
const char* arg = *arg_str->ToCString(); |
- Vector<char> v2(p, space); |
+ Vector<char> v2(p, static_cast<int>(space)); |
OS::StrNCpy(v2, arg, space); |
space -= Min(space, strlen(arg)); |
p = &buffer[kBufferSize] - space; |