diff --git a/src/processor/range_map-inl.h b/src/processor/range_map-inl.h index 55dae839..25604080 100644 --- a/src/processor/range_map-inl.h +++ b/src/processor/range_map-inl.h @@ -50,7 +50,7 @@ template bool RangeMap::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) {