X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2F_PDCLIB%2Fprint.c;h=76297147450d6636b7e7a2133be700febd723425;hb=015e9131c3aa3f39b34612d0d2fce242f6deb7b4;hp=d0476be857c470281de45c319c406b676aaed0aa;hpb=b4c5ead395b66caf75d78c9bf39c6da2de170b0b;p=pdclib.old diff --git a/functions/_PDCLIB/print.c b/functions/_PDCLIB/print.c index d0476be..7629714 100644 --- a/functions/_PDCLIB/print.c +++ b/functions/_PDCLIB/print.c @@ -259,7 +259,7 @@ const char * _PDCLIB_print( const char * spec, struct _PDCLIB_status_t * status if ( width < 0 ) { status->flags |= E_minus; - status->width = width * -1; /* FIXME: Should be abs( width ) */ + status->width = abs( width ); } else { @@ -536,7 +536,7 @@ static int testprintf( char * buffer, size_t n, const char * format, ... ) if ( *(_PDCLIB_print( format, &status )) != '\0' ) { printf( "_PDCLIB_print() did not return end-of-specifier on '%s'.\n", format ); - ++rc; + ++TEST_RESULTS; } va_end( status.arg ); return status.i;