From 7dd34892902616693eb2fa9e51a9742d199ddc70 Mon Sep 17 00:00:00 2001 From: Neutrino Date: Thu, 16 Feb 2017 14:13:03 +0800 Subject: [PATCH] fixed type mistake in ReedSolomonEncoder::encode --- src/zxing/zxing/common/reedsolomon/ReedSolomonEncoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zxing/zxing/common/reedsolomon/ReedSolomonEncoder.cpp b/src/zxing/zxing/common/reedsolomon/ReedSolomonEncoder.cpp index 37123d8..f957180 100644 --- a/src/zxing/zxing/common/reedsolomon/ReedSolomonEncoder.cpp +++ b/src/zxing/zxing/common/reedsolomon/ReedSolomonEncoder.cpp @@ -64,7 +64,7 @@ void ReedSolomonEncoder::encode(std::vector &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]; }