Split long lines in various {Java, JavaScript, Python, C++, C, Rust} code, without changing behavior.

This commit is contained in:
Project Nayuki
2017-08-31 20:19:41 +00:00
parent dfe960aa60
commit 272ca8bb54
6 changed files with 31 additions and 12 deletions
+3 -1
View File
@@ -539,7 +539,9 @@ int QrCode::getNumRawDataModules(int ver) {
int QrCode::getNumDataCodewords(int ver, const Ecc &ecl) {
if (ver < 1 || ver > 40)
throw "Version number out of range";
return getNumRawDataModules(ver) / 8 - ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver] * NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver];
return getNumRawDataModules(ver) / 8
- ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver]
* NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver];
}