Merge pull request #24 from neutrino2/master

fixed type mistake in ReedSolomonEncoder::encode
This commit is contained in:
Nikolaos Ftylitakis 2017-04-05 20:28:59 +03:00 committed by GitHub
commit d2cf8dc3f9
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,
// 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];
}