mirror of https://github.com/status-im/qzxing.git
fixed type mistake in ReedSolomonEncoder::encode
This commit is contained in:
parent
3ee00d8cff
commit
7dd3489290
|
@ -64,7 +64,7 @@ void ReedSolomonEncoder::encode(std::vector<int> &toEncode, int ecBytes)
|
|||
//toEncode.insert(toEncode.begin() + (dataBytes-1) + numZeroCoefficients,
|
||||
// coefficients.array_->values().begin(),
|
||||
// coefficients.array_->values().end());
|
||||
for (size_t i = 0; i < coefficients.count(); i++)
|
||||
for (size_t i = 0; i < coefficients->size(); i++)
|
||||
toEncode[dataBytes + numZeroCoefficients + i] = coefficients[i];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue