Remove redundant comparisons

This commit is contained in:
Daniel Marjamäki 2015-11-20 10:11:58 +01:00
parent 0022ce8075
commit 86957214ae
1 changed files with 1 additions and 3 deletions

View File

@ -365,9 +365,7 @@ MathLib::bigint MathLib::toLongNumber(const std::string & str)
if (str[0] == '\'' && str.size() >= 3U && str[str.size()-1U] == '\'') {
char c;
if (str.size() == 3U &&
str[0] == '\'' &&
str[2] == '\'')
if (str.size() == 3U)
c = str[1];
else if (str == "\'\\0\'")
c = '\0';