forked from Bananymous/banan-os
Fix negative number printing in kprint
This commit is contained in:
parent
20f7c18988
commit
4ebd0e5c36
|
@ -22,8 +22,8 @@ static void kprint_signed(T value)
|
|||
if (value < 0)
|
||||
{
|
||||
sign = true;
|
||||
*(--ptr) = ((value % 10 + 10) % 10) + '0';
|
||||
value /= 10;
|
||||
*(--ptr) = ((10 - (value % 10)) % 10) + '0';
|
||||
value = -(value / 10);
|
||||
}
|
||||
|
||||
while (value)
|
||||
|
|
Loading…
Reference in New Issue