From d0b37283284bb28193fe13d408a8c3a9e3937e76 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Thu, 27 Mar 2014 10:23:47 +0400 Subject: [PATCH] Get rid of assert in isdigit() when processing cyrillic characters. --- lib/token.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/token.cpp b/lib/token.cpp index c943c6192..ac3aa6f5d 100644 --- a/lib/token.cpp +++ b/lib/token.cpp @@ -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;