# fix for stackvec constructor.

This commit is contained in:
IRainman 2025-09-16 21:45:58 +03:00
parent af1f8e3ac2
commit e3aa99448a

View File

@ -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};