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

Unified Diff: base/string_piece_unittest.cc

Issue 9167008: Resolve an ambiguous function call by casting to StringPiece::size_type (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change the cast to the "U" suffix Created 8 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: base/string_piece_unittest.cc
diff --git a/base/string_piece_unittest.cc b/base/string_piece_unittest.cc
index a29fe747e6db2ff3c7d3fe61def7c03402c45335..a8ab4ff20d798691909c238f576cac758ca7bd8b 100644
--- a/base/string_piece_unittest.cc
+++ b/base/string_piece_unittest.cc
@@ -664,9 +664,9 @@ TYPED_TEST(CommonStringPieceTest, CheckConstructors) {
ASSERT_TRUE(str == BasicStringPiece<TypeParam>(str.c_str()));
ASSERT_TRUE(TestFixture::as_string("hello") ==
BasicStringPiece<TypeParam>(str.c_str(), 5));
- ASSERT_TRUE(empty == BasicStringPiece<TypeParam>(str.c_str(), 0));
+ ASSERT_TRUE(empty == BasicStringPiece<TypeParam>(str.c_str(), 0U));
ASSERT_TRUE(empty == BasicStringPiece<TypeParam>(NULL));
- ASSERT_TRUE(empty == BasicStringPiece<TypeParam>(NULL, 0));
+ ASSERT_TRUE(empty == BasicStringPiece<TypeParam>(NULL, 0U));
ASSERT_TRUE(empty == BasicStringPiece<TypeParam>());
ASSERT_TRUE(str == BasicStringPiece<TypeParam>(str.begin(), str.end()));
ASSERT_TRUE(empty == BasicStringPiece<TypeParam>(str.begin(), str.begin()));
« 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