Replaced '>>' with '> >' in C++ code using templates, for robustness in parsing.
This commit is contained in:
parent
654520d0d4
commit
5071995ab7
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue