Browse Source

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

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
6e3e5efaed
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/core/vsprintf.c

+ 1
- 1
src/core/vsprintf.c View File

237
 				hex = va_arg ( args, unsigned int );
237
 				hex = va_arg ( args, unsigned int );
238
 			}
238
 			}
239
 			ptr = format_hex ( ptr, hex, width, flags );
239
 			ptr = format_hex ( ptr, hex, width, flags );
240
-		} else if ( *fmt == 'd' ) {
240
+		} else if ( ( *fmt == 'd' ) || ( *fmt == 'i' ) ){
241
 			signed long decimal;
241
 			signed long decimal;
242
 
242
 
243
 			if ( *length >= sizeof ( signed long ) ) {
243
 			if ( *length >= sizeof ( signed long ) ) {

Loading…
Cancel
Save