mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
# fix for stackvec constructor.
This commit is contained in:
parent
af1f8e3ac2
commit
e3aa99448a
@ -39,7 +39,7 @@ constexpr limb_t bigint_limbs = bigint_bits / limb_bits;
|
||||
// vector-like type that is allocated on the stack. the entire
|
||||
// buffer is pre-allocated, and only the length changes.
|
||||
template <limb_t size> struct stackvec {
|
||||
limb data[size];
|
||||
limb data[size] = {0};
|
||||
// we never need more than 150 limbs
|
||||
uint_fast8_t length{0};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user