Wrong comparison in kore_strtonum64(), fix.

This commit is contained in:
Joris Vink 2014-07-21 01:19:39 +02:00
parent d4cec3427e
commit 25cf8dc659
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ kore_strtonum64(const char *str, int sign, int *err)
return (0);
}
} else {
if ((int64_t)l < 0 || l > ULLONG_MAX) {
if (l > ULLONG_MAX) {
*err = KORE_RESULT_ERROR;
return (0);
}