diff --git a/common/seperator.h b/common/seperator.h index 2524748d9..62054d137 100644 --- a/common/seperator.h +++ b/common/seperator.h @@ -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 {