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
1 changed files with 4 additions and 4 deletions

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