COMP: Try to remove more warnings

This commit is contained in:
Andy Cedilnik 2006-01-06 10:45:56 -05:00
parent 0bb9d2df58
commit cda76d7eff

View File

@ -311,7 +311,7 @@ static void dopr (char *buffer, size_t maxlen, const char *format, va_list args)
fvalue = va_arg (args, double); fvalue = va_arg (args, double);
break; break;
case 'c': case 'c':
dopr_outch (buffer, &currlen, maxlen, va_arg (args, int)); dopr_outch (buffer, &currlen, maxlen, (char)(va_arg (args, int)));
break; break;
case 's': case 's':
strvalue = va_arg (args, char *); strvalue = va_arg (args, char *);
@ -478,7 +478,7 @@ static void fmtint (char *buffer, size_t *currlen, size_t maxlen,
/* Sign */ /* Sign */
if (signvalue) if (signvalue)
dopr_outch (buffer, currlen, maxlen, signvalue); dopr_outch (buffer, currlen, maxlen, (char)signvalue);
/* Zeros */ /* Zeros */
if (zpadlen > 0) if (zpadlen > 0)
@ -629,7 +629,7 @@ static void fmtfp (char *buffer, size_t *currlen, size_t maxlen,
{ {
if (signvalue) if (signvalue)
{ {
dopr_outch (buffer, currlen, maxlen, signvalue); dopr_outch (buffer, currlen, maxlen, (char)signvalue);
--padlen; --padlen;
signvalue = 0; signvalue = 0;
} }
@ -645,7 +645,7 @@ static void fmtfp (char *buffer, size_t *currlen, size_t maxlen,
--padlen; --padlen;
} }
if (signvalue) if (signvalue)
dopr_outch (buffer, currlen, maxlen, signvalue); dopr_outch (buffer, currlen, maxlen, (char)signvalue);
while (iplace > 0) while (iplace > 0)
dopr_outch (buffer, currlen, maxlen, iconvert[--iplace]); dopr_outch (buffer, currlen, maxlen, iconvert[--iplace]);