diff options
-rw-r--r-- | src/google/protobuf/stubs/io_win32_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/stubs/io_win32_unittest.cc b/src/google/protobuf/stubs/io_win32_unittest.cc index 4777ee7e..3ef6c75d 100644 --- a/src/google/protobuf/stubs/io_win32_unittest.cc +++ b/src/google/protobuf/stubs/io_win32_unittest.cc @@ -85,7 +85,7 @@ class IoWin32Test : public ::testing::Test { namespace { void StripTrailingSlashes(string* str) { - size_t i = str->size() - 1; + int i = str->size() - 1; for (; i >= 0 && ((*str)[i] == '/' || (*str)[i] == '\\'); --i) {} str->resize(i+1); } |