mirror of https://github.com/status-im/qzxing.git
fixed the range of the array where the coefficients will be stored at ReedSolomonEncoder
This commit is contained in:
parent
bd96c910e9
commit
505f60c264
|
@ -65,7 +65,7 @@ void ReedSolomonEncoder::encode(std::vector<int> &toEncode, int ecBytes)
|
|||
// coefficients.array_->values().begin(),
|
||||
// coefficients.array_->values().end());
|
||||
for (size_t i = 0; i < coefficients.count(); i++)
|
||||
toEncode[i] = coefficients[i];
|
||||
toEncode[dataBytes + numZeroCoefficients + i] = coefficients[i];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue