use signed char for sign; silence clang warnings

This commit is contained in:
Aleksandar Fabijanic
2012-10-13 05:10:49 +00:00
parent e19eb5b704
commit 0b6c8aa1e0
2 changed files with 20 additions and 20 deletions

View File

@@ -91,7 +91,7 @@ bool strToInt(const char* pStr, I& result, short base, char thSep = ',')
if (!pStr) return false;
while (isspace(*pStr)) ++pStr;
if (*pStr == '\0') return false;
I sign = 1;
char sign = 1;
if ((base == 10) && (*pStr == '-'))
{
sign = -1;