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

Unified Diff: util/numeric/checked_range.h

Issue 700383007: Use implicit_cast<> instead of static_cast<> whenever possible (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 1 month 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
Index: util/numeric/checked_range.h
diff --git a/util/numeric/checked_range.h b/util/numeric/checked_range.h
index df3e395fe2be334ae5615d86ff4eb3d2ee9b0046..982ee4f2af752d6d2e7ba630fb1649c80aed3420 100644
--- a/util/numeric/checked_range.h
+++ b/util/numeric/checked_range.h
@@ -63,7 +63,7 @@ class CheckedRange {
return false;
}
base::CheckedNumeric<ValueType> checked_end(base_);
- checked_end += static_cast<ValueType>(size_);
+ checked_end += implicit_cast<ValueType>(size_);
return checked_end.IsValid();
}

Powered by Google App Engine
This is Rietveld 408576698