Changeset 573 for trunk/libs/mini-libc


Ignore:
Timestamp:
Oct 5, 2018, 12:21:52 AM (6 years ago)
Author:
alain
Message:

Cosmetic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/mini-libc/stdio.c

    r476 r573  
    4646    unsigned int ps = 0;    // write index to the string buffer
    4747
    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);
    4949
    5050xprintf_text:
     
    246246            default:       // unsupported argument type
    247247            {
    248                 return -1;
     248                return 0xFFFFFFFF;
    249249            }
    250250        }  // end switch on  argument type
     
    273273    va_end( args );
    274274
    275     if ( count == -1 )
     275    if ( count == 0xFFFFFFFF )
    276276    {
    277277        display_string( "printf : xprintf failure" );
     
    386386    va_end( args );
    387387
    388     if ( count == -1 )
     388    if ( count == 0xFFFFFFFF )
    389389    {
    390390        display_string( "fprintf : xprintf failure" );
Note: See TracChangeset for help on using the changeset viewer.