diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-02-26 09:59:29 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-02-26 09:59:29 +0100 |
commit | c2476ff6a5966e61956edb2d208fed140ae7cf55 (patch) | |
tree | 8fec731deb3b43e93521e6433752163a2726e9b5 /src/string.c | |
parent | 461d481e1a84e8e5232b471331e02ea9d63b2a2a (diff) | |
parent | 92ac2277ef889d82e56efd57a342959d8b3399d8 (diff) |
Merge branch 'feature/upstream' into develop
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; } |