From 5cdaac6b829a7ef98c9e355f8df71996dce4c878 Mon Sep 17 00:00:00 2001 From: GullCode Date: Mon, 18 Apr 2022 22:33:10 +0200 Subject: [PATCH] Fix uneeded negative test because type is uint ( warning: comparison is always false due to limited range of data type) --- firmware/application/qrcodegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/application/qrcodegen.cpp b/firmware/application/qrcodegen.cpp index 7c958ade..2dcdbee5 100644 --- a/firmware/application/qrcodegen.cpp +++ b/firmware/application/qrcodegen.cpp @@ -857,7 +857,7 @@ int8_t qrcode_initText(QRCode *qrcode, uint8_t *modules, uint8_t version, uint8_ } bool qrcode_getModule(QRCode *qrcode, uint8_t x, uint8_t y) { - if (x < 0 || x >= qrcode->size || y < 0 || y >= qrcode->size) { + if ( x >= qrcode->size || y >= qrcode->size) { return false; }