| Index: src/heap-inl.h
|
| diff --git a/src/heap-inl.h b/src/heap-inl.h
|
| index 33bc4f9ad70cc49a19c6e987886f9f323b4a19bd..de47c94a8a4a59f4ad5224ed209c3145fa990563 100644
|
| --- a/src/heap-inl.h
|
| +++ b/src/heap-inl.h
|
| @@ -460,7 +460,7 @@ intptr_t Heap::AdjustAmountOfExternalAllocatedMemory(
|
| intptr_t change_in_bytes) {
|
| ASSERT(HasBeenSetUp());
|
| intptr_t amount = amount_of_external_allocated_memory_ + change_in_bytes;
|
| - if (change_in_bytes >= 0) {
|
| + if (change_in_bytes > 0) {
|
| // Avoid overflow.
|
| if (amount > amount_of_external_allocated_memory_) {
|
| amount_of_external_allocated_memory_ = amount;
|
|
|