Get rid of assert in isdigit() when processing cyrillic characters.

This commit is contained in:
Dmitry-Me 2014-03-27 10:23:47 +04:00
parent d0e51fb5f0
commit d0b3728328
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ void Token::update_property_info()
_type = eVariable;
else if (_type != eVariable && _type != eFunction && _type != eType)
_type = eName;
} else if (std::isdigit(_str[0]) || (_str.length() > 1 && _str[0] == '-' && std::isdigit((unsigned char)_str[1])))
} else if (std::isdigit((unsigned char)_str[0]) || (_str.length() > 1 && _str[0] == '-' && std::isdigit((unsigned char)_str[1])))
_type = eNumber;
else if (_str.length() > 1 && _str[0] == '"' && _str[_str.length()-1] == '"')
_type = eString;