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] == '\'') {
|
if (str[0] == '\'' && str.size() >= 3U && str[str.size()-1U] == '\'') {
|
||||||
char c;
|
char c;
|
||||||
if (str.size() == 3U &&
|
if (str.size() == 3U)
|
||||||
str[0] == '\'' &&
|
|
||||||
str[2] == '\'')
|
|
||||||
c = str[1];
|
c = str[1];
|
||||||
else if (str == "\'\\0\'")
|
else if (str == "\'\\0\'")
|
||||||
c = '\0';
|
c = '\0';
|
||||||
|
|
Loading…
Reference in New Issue