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:
Solomon Peachy 2026-02-02 08:20:21 -05:00
parent 3f2ca20245
commit 78778d6e6f

View file

@ -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;