Index: src/regexp-stack.cc |
diff --git a/src/regexp-stack.cc b/src/regexp-stack.cc |
index 87a674dba3e55b5cb98b82a208cef3ad2c3a2da1..7696279a1d581dd33466754d9f1c72deb8a6beb4 100644 |
--- a/src/regexp-stack.cc |
+++ b/src/regexp-stack.cc |
@@ -81,7 +81,7 @@ Address RegExpStack::EnsureCapacity(size_t size) { |
if (size > kMaximumStackSize) return NULL; |
if (size < kMinimumStackSize) size = kMinimumStackSize; |
if (thread_local_.memory_size_ < size) { |
- Address new_memory = NewArray<byte>(size); |
+ Address new_memory = NewArray<byte>(static_cast<int>(size)); |
if (thread_local_.memory_size_ > 0) { |
// Copy original memory into top of new memory. |
memcpy(reinterpret_cast<void*>( |