diff --git a/include/jsoncons/bigint.hpp b/include/jsoncons/bigint.hpp index db8618848d..25254bdc0a 100644 --- a/include/jsoncons/bigint.hpp +++ b/include/jsoncons/bigint.hpp @@ -511,7 +511,7 @@ class basic_bigint : protected detail::basic_bigint_base common_stor_.length_ = n; uint64_t* a = data(); - for (size_type i = len_old; i < common_stor_.length_; ++i) + for (size_type i = len_old; i < n; ++i) { a[i] = 0; }