X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2F_PDCLIB%2Fprint.c;h=439098d69bc604331de9b5e832178fb431c4c32a;hp=f06a532b869bbb8d6f766a21b06e6951bd16901a;hb=3ea605404733209c32d8e43915fa3790adbcb1c9;hpb=2e74a0b7d074a6cbba5de67bd8a57147758a41e5 diff --git a/functions/_PDCLIB/print.c b/functions/_PDCLIB/print.c index f06a532..439098d 100644 --- a/functions/_PDCLIB/print.c +++ b/functions/_PDCLIB/print.c @@ -112,7 +112,7 @@ static void int2base( uintmax_t value, struct _PDCLIB_status_t * status ) } // Pad field out to the precision specification - while( written < status->prec ) outend[-++written] = '0'; + while( (long) written < status->prec ) outend[-++written] = '0'; // If a field width specified, and zero padding was requested, then pad to // the field width @@ -178,7 +178,7 @@ const char * _PDCLIB_print( const char * spec, struct _PDCLIB_status_t * status status->base = 0; status->current = 0; status->width = 0; - status->prec = 0; + status->prec = EOF; /* First come 0..n flags */ do