Skip to content

Commit

Permalink
string_utils: use UINT64_MAX macro
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Sep 30, 2018
1 parent 1d41f88 commit 6cbcad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/string_utils.c
Expand Up @@ -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')
Expand Down

0 comments on commit 6cbcad6

Please sign in to comment.