mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 02:26:10 +00:00
Kernel: Make UART::print_num(0) work on aarch64
This commit is contained in:
parent
d0c1db5efc
commit
94d0562569
Notes:
sideshowbarker
2024-07-18 03:17:22 +09:00
Author: https://github.com/nico
Commit: 94d0562569
Pull-request: https://github.com/SerenityOS/serenity/pull/10276
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
Add a link
Reference in a new issue