diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-01-06 15:45:56 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-01-06 15:45:56 (GMT) |
commit | cda76d7eff6390e2cebf08f7346da1f6998f0883 (patch) | |
tree | 420483bc9300d3bc7898b053f9c751131dd88ad3 | |
parent | 0bb9d2df5818b3665c5fba461f8d38e85eeadced (diff) | |
download | CMake-cda76d7eff6390e2cebf08f7346da1f6998f0883.zip CMake-cda76d7eff6390e2cebf08f7346da1f6998f0883.tar.gz CMake-cda76d7eff6390e2cebf08f7346da1f6998f0883.tar.bz2 |
COMP: Try to remove more warnings
-rw-r--r-- | Utilities/cmtar/compat/snprintf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Utilities/cmtar/compat/snprintf.c b/Utilities/cmtar/compat/snprintf.c index 94e420a..26a203e 100644 --- a/Utilities/cmtar/compat/snprintf.c +++ b/Utilities/cmtar/compat/snprintf.c @@ -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]); |