réplica de
https://github.com/Arnau478/quark.git
synced 2024-11-23 12:58:07 +01:00
Fixed #2
This commit is contained in:
pare
5ed34dbbe6
commit
2273635a04
S'han modificat 1 arxius amb 2 adicions i 2 eliminacions
|
@ -16,7 +16,7 @@ void putc(char c){
|
||||||
vga_print_string(str);
|
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];
|
char buffer[32];
|
||||||
int pos = 0;
|
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
|
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){
|
if(num < 0){
|
||||||
putc('-');
|
putc('-');
|
||||||
printf_unsigned(-num, radix);
|
printf_unsigned(-num, radix);
|
||||||
|
|
Loading…
Referencia en una nova incidència