1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00

Display hex in uppercase

This commit is contained in:
Braiden Vasco 2017-11-04 03:35:54 +00:00
parent 2b2b6d43ec
commit 339992a503

View file

@ -35,7 +35,7 @@ void itoa(char *buf, int base, int d)
// Divide UD by DIVISOR until UD == 0.
do {
int remainder = ud % divisor;
*p++ = (remainder < 10) ? remainder + '0' : remainder + 'a' - 10;
*p++ = (remainder < 10) ? remainder + '0' : remainder + 'A' - 10;
}
while (ud /= divisor);