2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-26 11:19:17 +00:00

Accept '%i' as a synonym for '%d'.

This commit is contained in:
Michael Brown 2006-07-25 14:33:20 +00:00
parent 9e761f5f28
commit 6e3e5efaed

View File

@ -237,7 +237,7 @@ size_t vcprintf ( struct printf_context *ctx, const char *fmt, va_list args ) {
hex = va_arg ( args, unsigned int );
}
ptr = format_hex ( ptr, hex, width, flags );
} else if ( *fmt == 'd' ) {
} else if ( ( *fmt == 'd' ) || ( *fmt == 'i' ) ){
signed long decimal;
if ( *length >= sizeof ( signed long ) ) {