Quick "fix" using static_assert

This commit is contained in:
Alex Hultman
2019-06-22 13:11:29 +02:00
parent cb8231fcc2
commit d18b45bf9e
+3
View File
@@ -55,6 +55,9 @@ public:
in++;
}
/* Don't care more than this for now */
static_assert(SHRT_MIN > INT_MIN, "Integer overflow fix is invalid for this platform, report this as a bug!");
int hashedToken = 0;
while (in != stop && (isalnum(*in) || *in == '-' || *in == '_')) {
if (isdigit(*in)) {