diff options
Diffstat (limited to 'common/util.c')
-rw-r--r-- | common/util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/util.c b/common/util.c index ed5b87c2c9..6188afc937 100644 --- a/common/util.c +++ b/common/util.c @@ -191,7 +191,8 @@ __stdlib_compat int strtoi(const char *nptr, char **endptr, int base) return neg ? -result : result; } -__stdlib_compat uint64_t strtoul(const char *nptr, char **endptr, int base) +__stdlib_compat unsigned long long int strtoull(const char *nptr, char **endptr, + int base) { uint64_t result = 0; int c = '\0'; @@ -226,6 +227,7 @@ __stdlib_compat uint64_t strtoul(const char *nptr, char **endptr, int base) *endptr = (char *)nptr - 1; return result; } +BUILD_ASSERT(sizeof(unsigned long long int) == sizeof(uint64_t)); __stdlib_compat int parse_bool(const char *s, int *dest) { |