Deleted comment and calculated the constant in QrCode.getNumRawDataModules() in all language versions except Java, because only the Java code explains the calculation in detail.

This commit is contained in:
Project Nayuki
2018-08-28 03:53:17 +00:00
parent f83f201b8d
commit e7d2449957
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -520,7 +520,7 @@ int QrCode::getNumRawDataModules(int ver) {
int numAlign = ver / 7 + 2;
result -= (25 * numAlign - 10) * numAlign - 55;
if (ver >= 7)
result -= 18 * 2; // Subtract version information
result -= 36;
}
return result;
}