Replaced '>>' with '> >' in C++ code using templates, for robustness in parsing.

This commit is contained in:
Project Nayuki 2017-04-17 02:01:32 +00:00
parent 654520d0d4
commit 5071995ab7
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ std::vector<uint8_t> qrcodegen::QrCode::appendErrorCorrection(const std::vector<
int shortBlockLen = getNumRawDataModules(version) / 8 / numBlocks; int shortBlockLen = getNumRawDataModules(version) / 8 / numBlocks;
// Split data into blocks and append ECC to each block // Split data into blocks and append ECC to each block
std::vector<std::vector<uint8_t>> blocks; std::vector<std::vector<uint8_t> > blocks;
const ReedSolomonGenerator rs(blockEccLen); const ReedSolomonGenerator rs(blockEccLen);
for (int i = 0, k = 0; i < numBlocks; i++) { for (int i = 0, k = 0; i < numBlocks; i++) {
std::vector<uint8_t> dat; std::vector<uint8_t> dat;