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

Unified Diff: base/safe_numerics_unittest.cc

Issue 12051089: fix checked_numeric_cast comments (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « base/safe_numerics.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/safe_numerics_unittest.cc
diff --git a/base/safe_numerics_unittest.cc b/base/safe_numerics_unittest.cc
index 7737488367b48946c3286f0acd5ca082a82c5b94..c66e56f3cf74f2ead7939703c2eb510d0e3171f8 100644
--- a/base/safe_numerics_unittest.cc
+++ b/base/safe_numerics_unittest.cc
@@ -130,7 +130,7 @@ TEST(SafeNumerics, NumericCast) {
IsValidNumericCast<unsigned short>(static_cast<short>(SHRT_MIN)));
EXPECT_FALSE(IsValidNumericCast<unsigned short>(SHRT_MIN));
- // Confirm that numeric_cast<> actually compiles.
+ // Confirm that checked_numeric_cast<> actually compiles.
std::vector<int> v;
unsigned int checked_size =
base::checked_numeric_cast<unsigned int>(v.size());
« no previous file with comments | « base/safe_numerics.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698