diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-02-26 09:59:08 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-02-26 09:59:08 +0100 |
commit | 2acbac8ef9d314b73fbbd68c2e70580988c063a9 (patch) | |
tree | 9d134169add19bb6fd752f460c6afaf16ac1310b /src/string.c | |
parent | eece9692d707ccb20356ec06955f8308c4e59ca7 (diff) |
New upstream version 4.23upstream/4.23
Diffstat (limited to 'src/string.c')
-rw-r--r-- | src/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c index 06066ce..e468063 100644 --- a/src/string.c +++ b/src/string.c @@ -1036,7 +1036,7 @@ EXPORT_SYMBOL unsigned long long HX_strtoull_unit(const char *s, * UB. Thus check for range and apply the negation after the * conversion to ULL. */ - if (q > ULLONG_MAX) { + if (q >= static_cast(double, ULLONG_MAX)) { errno = ERANGE; return ULLONG_MAX; } |