Changeset 573 for trunk/libs/mini-libc
- Timestamp:
- Oct 5, 2018, 12:21:52 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/mini-libc/stdio.c
r476 r573 46 46 unsigned int ps = 0; // write index to the string buffer 47 47 48 #define TO_STREAM(x) do { string[ps] = (x); ps++; if(ps==length) return -1; } while(0);48 #define TO_STREAM(x) do { string[ps] = (x); ps++; if(ps==length) return 0xFFFFFFFF; } while(0); 49 49 50 50 xprintf_text: … … 246 246 default: // unsupported argument type 247 247 { 248 return -1;248 return 0xFFFFFFFF; 249 249 } 250 250 } // end switch on argument type … … 273 273 va_end( args ); 274 274 275 if ( count == -1)275 if ( count == 0xFFFFFFFF ) 276 276 { 277 277 display_string( "printf : xprintf failure" ); … … 386 386 va_end( args ); 387 387 388 if ( count == -1)388 if ( count == 0xFFFFFFFF ) 389 389 { 390 390 display_string( "fprintf : xprintf failure" );
Note: See TracChangeset
for help on using the changeset viewer.