mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-22 07:04:13 +08:00
ugly fix for gcc10 stringop-overflow warning
This commit is contained in:
parent
183b375e27
commit
e7a76cee5a
1 changed files with 2 additions and 1 deletions
|
@ -542,7 +542,8 @@ static void read_black(uint32_t i, uint8_t *l, uint8_t model_nr, uint8_t *black)
|
|||
}
|
||||
}
|
||||
static void read_red(uint32_t i, uint8_t *l, uint8_t model_nr, uint8_t *red) {
|
||||
for (uint8_t j = 0; j < models[model_nr].len; j++) {
|
||||
// spurious warning with GCC10 (-Wstringop-overflow) when j is uint8_t, even if all len are < 128
|
||||
for (uint16_t j = 0; j < models[model_nr].len; j++) {
|
||||
if (model_nr == M1in54B) {
|
||||
//1.54B needs to flip the red picture data, other screens do not need to flip data
|
||||
l[3 + j] = ~red[i * models[model_nr].len + j];
|
||||
|
|
Loading…
Reference in a new issue