mirror of https://github.com/status-im/qzxing.git
Merge pull request #24 from neutrino2/master
fixed type mistake in ReedSolomonEncoder::encode
This commit is contained in:
commit
d2cf8dc3f9
|
@ -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