diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-28 19:50:42 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-28 19:50:42 (GMT) |
commit | d715d52a11fbcbc3310412ae7c7ec1e71e5bcbed (patch) | |
tree | bec071eb7478cbecd4ee6bfbea34c9f21ae473cf | |
parent | f2a67f59fef0d6f285fae5bcf9fd9ceac5b83205 (diff) | |
download | CMake-d715d52a11fbcbc3310412ae7c7ec1e71e5bcbed.zip CMake-d715d52a11fbcbc3310412ae7c7ec1e71e5bcbed.tar.gz CMake-d715d52a11fbcbc3310412ae7c7ec1e71e5bcbed.tar.bz2 |
COMP: Remove warnings
-rw-r--r-- | Utilities/cmtar/compat/snprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Utilities/cmtar/compat/snprintf.c b/Utilities/cmtar/compat/snprintf.c index 40c54d6..24a17500 100644 --- a/Utilities/cmtar/compat/snprintf.c +++ b/Utilities/cmtar/compat/snprintf.c @@ -527,7 +527,7 @@ static long round (long double value) { long intpart; - intpart = value; + intpart = (long)value; value = value - intpart; if (value >= 0.5) intpart++; @@ -572,7 +572,7 @@ static void fmtfp (char *buffer, size_t *currlen, size_t maxlen, if (flags & DP_F_UP) caps = 1; /* Should characters be upper case? */ #endif - intpart = ufvalue; + intpart = (long)ufvalue; /* * Sorry, we only support 9 digits past the decimal because of our @@ -589,7 +589,7 @@ static void fmtfp (char *buffer, size_t *currlen, size_t maxlen, if (fracpart >= pow10 (max)) { intpart++; - fracpart -= pow10 (max); + fracpart -= (long)(pow10 (max)); } #ifdef DEBUG_SNPRINTF |