Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libconio/src/conio.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ void cio_printf(char *format, ...)
cio_printc((char)va_arg(a, int));
break;
case 'i': // 16 bit Integer
case 'd': // 16 bit Integer
case 'u': // 16 bit Unsigned
i = va_arg(a, int);
if(c == 'i' && i < 0) i = -i, cio_printc('-');
if((c == 'i' || c =='d') && i < 0) i = -i, cio_printc('-');
_xtoa((unsigned)i, _dv + 5);
break;
case 'l': // 32 bit Long
Expand Down