mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-31 01:31:10 +00:00
Changed QrCode.getModule() in {Java, JavaScript, Python, C++} language versions to return Boolean instead of 0/1 - to match {C, Rust} language versions - and updated comments and usages.
This commit is contained in:
@@ -168,7 +168,7 @@ static void printQr(const QrCode &qr) {
|
||||
int border = 4;
|
||||
for (int y = -border; y < qr.size + border; y++) {
|
||||
for (int x = -border; x < qr.size + border; x++) {
|
||||
std::cout << (qr.getModule(x, y) == 1 ? "##" : " ");
|
||||
std::cout << (qr.getModule(x, y) ? "##" : " ");
|
||||
}
|
||||
std::cout << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user