1. Patrick Mézard
  2. libphonenumber-csharp

Commits

phil...@gmail.com@ee073f10-1060-11df-b6a4-87a95322a99c  committed c80e48c

CPP: Adjust phonenumbermatch_test.cc integer types.

This failed with OSX 10.6 default gcc-4.2 and macports gcc-4.8.

Patch contributed by pmezard.

  • Participants
  • Parent commits 56a92d7
  • Branches default

Comments (0)

Files changed (1)

File cpp/test/phonenumbers/phonenumbermatch_test.cc

View file
  • Ignore whitespace
   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());