mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
warning fix.
This commit is contained in:
parent
1febc3a070
commit
a8c5bd9a38
@ -298,7 +298,7 @@ FASTFLOAT_CONSTEXPR20 bool large_add_from(stackvec<size> &x, limb_span y,
|
||||
limb_t start) noexcept {
|
||||
// the effective x buffer is from `xstart..x.len()`, so exit early
|
||||
// if we can't get that current range.
|
||||
if (x.len() < start || y.len() > x.len() - start) {
|
||||
if (x.len() < start || y.len() > limb_t(x.len() - start)) {
|
||||
FASTFLOAT_TRY(x.try_resize(limb_t(y.len() + start), 0));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user