From bac7bb5c16b6725436c61c6785701d9b51ed28f6 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Fri, 15 Jan 2016 12:14:24 -0800 Subject: [PATCH] Fix a couple sign-comparison warnings. Bug: http://b/26523949 Change-Id: Id33146b5544147945fee3f14f7f72f39bae449f6 --- adb/sysdeps_win32_test.cpp | 2 +- base/utf8_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adb/sysdeps_win32_test.cpp b/adb/sysdeps_win32_test.cpp index 81923cb60..1d4028173 100755 --- a/adb/sysdeps_win32_test.cpp +++ b/adb/sysdeps_win32_test.cpp @@ -66,7 +66,7 @@ TEST(sysdeps_win32, adb_getenv) { const char* path_val = adb_getenv("PATH"); EXPECT_NE(nullptr, path_val); if (path_val != nullptr) { - EXPECT_GT(strlen(path_val), 0); + EXPECT_GT(strlen(path_val), 0U); } } diff --git a/base/utf8_test.cpp b/base/utf8_test.cpp index dde7490ad..ae8fc8c79 100755 --- a/base/utf8_test.cpp +++ b/base/utf8_test.cpp @@ -44,7 +44,7 @@ TEST(UTFStringConversionsTest, ConvertInvalidUTF8) { // specific replacement character that UTF8ToWide() may replace the invalid // UTF-8 characters with because we want to allow that to change if the // implementation changes. - EXPECT_EQ(0, wide.find(L"before")); + EXPECT_EQ(0U, wide.find(L"before")); const wchar_t after_wide[] = L"after"; EXPECT_EQ(wide.length() - (arraysize(after_wide) - 1), wide.find(after_wide)); }