string_utils: use UINT64_MAX macro

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-08-27 01:05:18 +02:00
parent 1f207a5cd9
commit 62fc84030b
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -679,7 +679,7 @@ int lxc_safe_uint64(const char *numstr, uint64_t *converted, int base)
errno = 0;
u = strtoull(numstr, &err, base);
if (errno == ERANGE && u == ULLONG_MAX)
if (errno == ERANGE && u == UINT64_MAX)
return -ERANGE;
if (err == numstr || *err != '\0')