mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-11 13:59:18 +03:00
Corrected data type in printf argument.
This commit is contained in:
parent
a47ff4dece
commit
397d28da8f
@ -636,9 +636,9 @@ gauge_callback (WGauge *g, int msg, int parm)
|
|||||||
columns = (2 * (gauge_len - 7) * done / total + 1) / 2;
|
columns = (2 * (gauge_len - 7) * done / total + 1) / 2;
|
||||||
addch ('[');
|
addch ('[');
|
||||||
attrset (GAUGE_COLOR);
|
attrset (GAUGE_COLOR);
|
||||||
printw ("%*s", columns, "");
|
printw ("%*s", (int) columns, "");
|
||||||
attrset (NORMALC);
|
attrset (NORMALC);
|
||||||
printw ("%*s] %3d%%", gauge_len - 7 - columns, "", percentage);
|
printw ("%*s] %3d%%", (int)(gauge_len - 7 - columns), "", (int) percentage);
|
||||||
}
|
}
|
||||||
return MSG_HANDLED;
|
return MSG_HANDLED;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user