mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-13 01:59:49 -04:00
Fix uneeded negative test because type is uint ( warning: comparison is always false due to limited range of data type)
This commit is contained in:
parent
17aa58bbf8
commit
5cdaac6b82
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue