fix build problems on Windows

This commit is contained in:
Vadim Pisarevsky
2011-05-17 13:32:42 +00:00
parent 0f5f60f7f5
commit 3d154c9dde
2 changed files with 9 additions and 9 deletions

View File

@@ -32,7 +32,7 @@ void PreprocessArgs(int _argc, const char* _argv[], int& argc, char**& argv)
find_symbol = buffer_string.find('=');
if (find_symbol == -1)
buffer_vector.push_back(buffer_string);
else if (find_symbol == 0 || find_symbol == (buffer_string.length() - 1))
else if (find_symbol == 0 || find_symbol == ((int)buffer_string.length() - 1))
{
buffer_string.erase(find_symbol, (find_symbol + 1));
buffer_vector.push_back(buffer_string);