mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-11 16:37:45 -04:00
misc: Correct inifinite loop when volume has a fractional component
Introduced in 3f2ca2024
Purely a theretical problem but we should fix it regardless
Change-Id: Ifeb4e1aeb3291c723b2addf2f2d391775db57b03
This commit is contained in:
parent
3f2ca20245
commit
78778d6e6f
1 changed files with 1 additions and 1 deletions
|
|
@ -1959,7 +1959,7 @@ static long get_nvol_factor(void)
|
|||
factor /= 10;
|
||||
|
||||
/* nothing *actually* needs this, but: */
|
||||
while (numdecimals > 1)
|
||||
while (numdecimals-- > 1)
|
||||
factor *= 10;
|
||||
|
||||
return factor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue