Silence a false positive compiler warning
Potential overflow which cannot happen, since the integer ranger here is just a handful of dB, nowhere near INT_MAX.
This commit is contained in:
parent
6730cfe13e
commit
d19b12c283
|
@ -1757,10 +1757,10 @@ static void draw_grid (Fil4UI* ui) {
|
|||
GRID_DB_DOT(-i);
|
||||
break;
|
||||
}
|
||||
char txt[8];
|
||||
snprintf (txt, 8, "%+d", i);
|
||||
char txt[16];
|
||||
snprintf (txt, sizeof(txt), "%+d", i);
|
||||
GRID_DB(i, txt);
|
||||
snprintf (txt, 8, "%+d", -i);
|
||||
snprintf (txt, sizeof(txt), "%+d", -i);
|
||||
GRID_DB(-i, txt);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue