diff --git a/src/framework/stdext/qrcodegen.cpp b/src/framework/stdext/qrcodegen.cpp index e028a712b7..d7711fc6f1 100644 --- a/src/framework/stdext/qrcodegen.cpp +++ b/src/framework/stdext/qrcodegen.cpp @@ -432,7 +432,7 @@ namespace qrcodegen { void QrCode::drawFinderPattern(int x, int y) { for (int dy = -4; dy <= 4; dy++) { for (int dx = -4; dx <= 4; dx++) { - int dist = std::max(std::abs(dx), std::abs(dy)); // Chebyshev/infinity norm + int dist = std::max(std::abs(dx), std::abs(dy)); // Chebyshev/infinity norm int xx = x + dx, yy = y + dy; if (0 <= xx && xx < size && 0 <= yy && yy < size) setFunctionModule(xx, yy, dist != 2 && dist != 4); @@ -443,7 +443,7 @@ namespace qrcodegen { void QrCode::drawAlignmentPattern(int x, int y) { for (int dy = -2; dy <= 2; dy++) { for (int dx = -2; dx <= 2; dx++) - setFunctionModule(x + dx, y + dy, std::max(std::abs(dx), std::abs(dy)) != 1); + setFunctionModule(x + dx, y + dy, std::max(std::abs(dx), std::abs(dy)) != 1); } }