This failed with OSX 10.6 default gcc-4.2 and macports gcc-4.8.
Patch contributed by pmezard.
git-svn-id: http://libphonenumber.googlecode.com/svn/trunk@461
ee073f10-1060-11df-b6a4-
87a95322a99c
PhoneNumberMatch match1(start_index, raw_phone_number, number);
EXPECT_EQ(start_index, match1.start());
PhoneNumberMatch match1(start_index, raw_phone_number, number);
EXPECT_EQ(start_index, match1.start());
- EXPECT_EQ(start_index + raw_phone_number.length(), match1.end());
- EXPECT_EQ(raw_phone_number.length(), match1.length());
+ EXPECT_EQ(start_index + static_cast<int>(raw_phone_number.length()),
+ match1.end());
+ EXPECT_EQ(static_cast<int>(raw_phone_number.length()), match1.length());
EXPECT_EQ(raw_phone_number, match1.raw_string());
EXPECT_EQ("PhoneNumberMatch [10,25) 1 800 234 45 67", match1.ToString());
EXPECT_EQ(raw_phone_number, match1.raw_string());
EXPECT_EQ("PhoneNumberMatch [10,25) 1 800 234 45 67", match1.ToString());