← Commit list

67dc7b21c

Timo Teräs
Timo Teräs
2012-10-17
SUCCESS Duration: 232s

Subject

fbsplash: fix regression from e4fa7b7

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/fbsplash.c+2 -3
@@ -312,8 +312,7 @@ static void fb_drawprogressbar(unsigned percent)
pos_x = left_x;
if (percent > 0) {
- int y;
- unsigned i;
+ int i, y;
// actual progress bar
pos_x += (unsigned)(width * percent) / 100;
@@ -325,7 +324,7 @@ static void fb_drawprogressbar(unsigned percent)
while (i >= 0) {
// draw one-line thick "rectangle"
// top line will have gray lvl 200, bottom one 100
- unsigned gray_level = 100 + i*100 / height;
+ unsigned gray_level = 100 + (unsigned)i*100 / height;
fb_drawfullrectangle(
left_x, y, pos_x, y,
gray_level, gray_level, gray_level);