mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
Kernel: Make UART::print_num(0) work on aarch64
This commit is contained in:
parent
d0c1db5efc
commit
94d0562569
1 changed files with 2 additions and 2 deletions
|
@ -30,10 +30,10 @@ public:
|
|||
{
|
||||
char buf[11];
|
||||
int i = 0;
|
||||
while (n) {
|
||||
do {
|
||||
buf[i++] = (n % 10) + '0';
|
||||
n /= 10;
|
||||
}
|
||||
} while (n);
|
||||
for (i--; i >= 0; i--)
|
||||
send(buf[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue