Be more explicit about what we are checking

(This removes a crap ton of clang warnings)
This commit is contained in:
Michael Cook (mackal) 2014-12-08 20:58:49 -05:00
parent 449b1f9d35
commit 7e7ec8e3d2

View File

@ -126,7 +126,7 @@ public:
if (check[i] == '.' && !SeenDec) {
SeenDec = true;
}
else if (i == 0 && (check[i] == '-' || check[i] == '+') && !check[i+1] == 0) {
else if (i == 0 && (check[i] == '-' || check[i] == '+') && check[i + 1] != '\0') {
// this is ok, do nothin
}
else {