Skip to content

Commit

Permalink
TBitArrayImplementation.ensureCapacity - Count for Move must multipli…
Browse files Browse the repository at this point in the history
…ed by element size in bytes #151
  • Loading branch information
E Spelt committed Aug 23, 2023
1 parent 97e640b commit abc7617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/Classes/Common/ZXing.Common.BitArrayImplementation.pas
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ procedure TBitArrayImplementation.ensureCapacity(size: Integer);
if (size > TMathUtils.Asr(Length(Fbits), 5)) then
begin
newBits := makeArray(size);
Move(Fbits[0], newBits[0], Length(Fbits));
Move(Fbits[0], newBits[0], Length(Fbits) * SizeOf(Fbits[0]));
Fbits := newBits;
end;
end;
Expand Down

0 comments on commit abc7617

Please sign in to comment.