Skip to content

Commit 879ae85

Browse files
committed
Fix offset computation in BigInteger::operator<<
1 parent 8b98f4a commit 879ae85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/rapidjson/internal/biginteger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class BigInteger {
133133
RAPIDJSON_ASSERT(count_ + offset <= kCapacity);
134134

135135
if (interShift == 0) {
136-
std::memmove(&digits_[count_ - 1 + offset], &digits_[count_ - 1], count_ * sizeof(Type));
136+
std::memmove(digits_ + offset, digits_, count_ * sizeof(Type));
137137
count_ += offset;
138138
}
139139
else {

0 commit comments

Comments
 (0)