diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-05 01:15:20 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-05 01:15:20 +0000 |
commit | b95efdd62ec71230dab3ba599cecc62c7e2e92a2 (patch) | |
tree | 2d005063e0837b86ba33096c1c2d8538e1f224f3 /base/fixed_string_unittest.cc | |
parent | 7b822b2be3e9eff10ffb9065f2449678fc0aab59 (diff) | |
download | chromium_src-b95efdd62ec71230dab3ba599cecc62c7e2e92a2.zip chromium_src-b95efdd62ec71230dab3ba599cecc62c7e2e92a2.tar.gz chromium_src-b95efdd62ec71230dab3ba599cecc62c7e2e92a2.tar.bz2 |
(Mac port.) Work around Mac gcc getting confused by an integer.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@358 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/fixed_string_unittest.cc')
-rw-r--r-- | base/fixed_string_unittest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/fixed_string_unittest.cc b/base/fixed_string_unittest.cc index a7a0767..70c4caa 100644 --- a/base/fixed_string_unittest.cc +++ b/base/fixed_string_unittest.cc @@ -56,7 +56,9 @@ TEST(FixedStringTest, TestBasic) { TEST(FixedStringTest, TestOverflow) { FixedString<wchar_t, 5> buf; buf.Append(L"hello world"); - EXPECT_EQ(0, buf.size()); + // The following static_cast is necessary to make Mac gcc happy, so don't + // remove it unless you've verified that it works there. + EXPECT_EQ(static_cast<size_t>(0), buf.size()); EXPECT_EQ(0, buf.get()[0]); EXPECT_EQ(true, buf.was_truncated()); } |