Spelt/ZXing.Delphi

TBitArrayImplementation.ensureCapacity - Count for Move must multiplied by element size in bytes

JedrzejczykRobert opened this issue · 0 comments

file: ZXing.Common.BitArrayImplementation
line: 86

current:

Move(Fbits[0], newBits[0], Length(Fbits));

should be:

Move(Fbits[0], newBits[0], Length(Fbits) * SizeOf(Fbits[0]));