Fixed warnings on Windows

This commit is contained in:
matlabbe
2015-11-03 12:49:03 -05:00
parent dc20327a18
commit 620ce51f70
4 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -614,10 +614,10 @@ inline bool uIsDigit(const char c)
*/
inline bool uIsInteger(const std::string & str)
{
bool isInteger = str.size();
bool isInteger = str.size()!=0;
for(unsigned int i=0; i<str.size() && isInteger; ++i)
{
isInteger = isdigit(str[i]);
isInteger = uIsDigit(str[i]);
}
return isInteger;
}