From 2273635a040c367cd2278f9e7de4c3cbb05dcf4e Mon Sep 17 00:00:00 2001 From: Arnau478 Date: Mon, 20 Jun 2022 16:46:11 +0200 Subject: [PATCH] Fixed #2 --- src/kernel/lib/stdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/lib/stdio.c b/src/kernel/lib/stdio.c index fd490e5..50a14e5 100644 --- a/src/kernel/lib/stdio.c +++ b/src/kernel/lib/stdio.c @@ -16,7 +16,7 @@ void putc(char c){ vga_print_string(str); } -static void printf_signed(unsigned long long num, int radix){ +static void printf_unsigned(unsigned long long num, int radix){ char buffer[32]; int pos = 0; @@ -30,7 +30,7 @@ static void printf_signed(unsigned long long num, int radix){ while(--pos >= 0) putc(buffer[pos]); // Note reverse order } -static void printf_unsigned(unsigned long long num, int radix){ +static void printf_signed(unsigned long long num, int radix){ if(num < 0){ putc('-'); printf_unsigned(-num, radix);