]> pd.if.org Git - pdclib/blobdiff - functions/_PDCLIB/print.c
Cleaned up the testing a bit.
[pdclib] / functions / _PDCLIB / print.c
index d0476be857c470281de45c319c406b676aaed0aa..76297147450d6636b7e7a2133be700febd723425 100644 (file)
@@ -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;