fixed type mistake in ReedSolomonEncoder::encode

This commit is contained in:
Neutrino 2017-02-16 14:13:03 +08:00
parent 3ee00d8cff
commit 7dd3489290
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ void ReedSolomonEncoder::encode(std::vector<int> &toEncode, int ecBytes)
//toEncode.insert(toEncode.begin() + (dataBytes-1) + numZeroCoefficients, //toEncode.insert(toEncode.begin() + (dataBytes-1) + numZeroCoefficients,
// coefficients.array_->values().begin(), // coefficients.array_->values().begin(),
// coefficients.array_->values().end()); // 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]; toEncode[dataBytes + numZeroCoefficients + i] = coefficients[i];
} }