Index: src/processor/range_map-inl.h |
diff --git a/src/processor/range_map-inl.h b/src/processor/range_map-inl.h |
index 55dae8396d4aef1dfe8fd11b9d2e1507647410d0..25604080e31f63fef274c7cbd8cff0a872f1d2e1 100644 |
--- a/src/processor/range_map-inl.h |
+++ b/src/processor/range_map-inl.h |
@@ -50,7 +50,7 @@ template<typename AddressType, typename EntryType> |
bool RangeMap<AddressType, EntryType>::StoreRange(const AddressType &base, |
const AddressType &size, |
const EntryType &entry) { |
- AddressType high = base + size - 1; |
+ AddressType high = base + (size - 1); |
// Check for undersize or overflow. |
if (size <= 0 || high < base) { |