summaryrefslogtreecommitdiff
path: root/src/string.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2024-02-26 09:59:08 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2024-02-26 09:59:08 +0100
commit2acbac8ef9d314b73fbbd68c2e70580988c063a9 (patch)
tree9d134169add19bb6fd752f460c6afaf16ac1310b /src/string.c
parenteece9692d707ccb20356ec06955f8308c4e59ca7 (diff)
New upstream version 4.23upstream/4.23upstream
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c2
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;
}