mirror of
https://github.com/openharmony/third_party_qrcodegen.git
synced 2026-07-18 09:44:36 -04:00
Added an assertion check to C++ code.
This commit is contained in:
@@ -334,6 +334,8 @@ std::vector<uint8_t> qrcodegen::QrCode::appendErrorCorrection(const std::vector<
|
||||
result.push_back(blocks.at(j).at(i));
|
||||
}
|
||||
}
|
||||
if (result.size() != static_cast<unsigned int>(getNumRawDataModules(version) / 8))
|
||||
throw "Assertion error";
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user