Index: src/ia32/assembler-ia32.cc |
diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc |
index 4d3195957e62da509bf165433387c3aaf3a3bb26..d4de79ef59a67b8016d902f93ba9246224b6a070 100644 |
--- a/src/ia32/assembler-ia32.cc |
+++ b/src/ia32/assembler-ia32.cc |
@@ -2912,8 +2912,9 @@ void Assembler::GrowBuffer() { |
// Some internal data structures overflow for very large buffers, |
// they must ensure that kMaximalBufferSize is not too large. |
- if ((desc.buffer_size > kMaximalBufferSize) || |
- (desc.buffer_size > isolate()->heap()->MaxOldGenerationSize())) { |
+ if (desc.buffer_size > kMaximalBufferSize || |
+ static_cast<size_t>(desc.buffer_size) > |
+ isolate()->heap()->MaxOldGenerationSize()) { |
V8::FatalProcessOutOfMemory("Assembler::GrowBuffer"); |
} |