Explorar el Código

Fix unsiged underflow

Jisi Liu hace 8 años
padre
commit
cc58be617d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/google/protobuf/stubs/io_win32_unittest.cc

+ 1 - 1
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);
 }