From 7e7ec8e3d289867508a4eb9944176324b6d7d849 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Mon, 8 Dec 2014 20:58:49 -0500 Subject: [PATCH] Be more explicit about what we are checking (This removes a crap ton of clang warnings) --- common/seperator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {