Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1272)

Unified Diff: src/processor/range_map-inl.h

Issue 1591793002: breakpad: fix unittest failure when building with clang. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698