fix some CodeQL warnings

This commit is contained in:
Philippe Teuwen committed 2022-02-16 20:28:38 +01:00
1 parent 8082cbbdcb
commit 623169fe02
15 files changed
+25 -27

No files matched your search

+1 -1
View File
@@ -586,7 +586,7 @@ static int CmdIndalaSim(const char *Cmd) {
memset(bs, 0x00, sizeof(bs));
uint8_t counter = 0;
for (int8_t i = 0; i < raw_len; i++) {
for (int32_t i = 0; i < raw_len; i++) {
uint8_t tmp = raw[i];
bs[counter++] = (tmp >> 7) & 1;
bs[counter++] = (tmp >> 6) & 1;