Remove redundant comparisons
This commit is contained in:
parent
0022ce8075
commit
86957214ae
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue