mirror of https://github.com/status-im/qzxing.git
fix to the toBytes at initial check.
This commit is contained in:
parent
977022f63f
commit
095b27a4b2
|
@ -206,8 +206,8 @@ void BitArray::xor_(const BitArray& other)
|
|||
|
||||
void BitArray::toBytes(int bitOffset, std::vector<char>& array, int offset, int numBytes)
|
||||
{
|
||||
if(array.size() < numBytes)
|
||||
array.resize(numBytes);
|
||||
if(array.size() < (numBytes + offset))
|
||||
array.resize(numBytes + offset);
|
||||
|
||||
for (int i = 0; i < numBytes; i++) {
|
||||
int theByte = 0;
|
||||
|
|
Loading…
Reference in New Issue