mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
Fix non-skipping of percent sign
This commit is contained in:
1 parent
b9da170080
commit
6812d2e72d
1 file changed
+4
-1
@@ -387,7 +387,10 @@ parse_proportional_spec (char *value, signed *abs, grub_fixed_signed_t *prop)
|
|||||||
if (sig)
|
if (sig)
|
||||||
num = -num;
|
num = -num;
|
||||||
if (*ptr == '%')
|
if (*ptr == '%')
|
||||||
*prop += grub_fixed_fsf_divide (grub_signed_to_fixed (num), 100);
|
{
|
||||||
|
*prop += grub_fixed_fsf_divide (grub_signed_to_fixed (num), 100);
|
||||||
|
ptr++;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
*abs += num;
|
*abs += num;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user