diff options
author | Brad King <brad.king@kitware.com> | 2010-06-29 13:52:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-06-29 13:52:12 (GMT) |
commit | ff1f8d0b53c37336645d4d53fc30134540d17ddd (patch) | |
tree | 140deb30db33b7dfdae6d22ecf43897640526d42 /Source/cm_utf8.c | |
parent | 6fc4cd86806b349c804cf9dacb2dd04c289a684f (diff) | |
download | CMake-ff1f8d0b53c37336645d4d53fc30134540d17ddd.zip CMake-ff1f8d0b53c37336645d4d53fc30134540d17ddd.tar.gz CMake-ff1f8d0b53c37336645d4d53fc30134540d17ddd.tar.bz2 |
Fix or cast more integer conversions in cmake
These were revealed by GCC's -Wconversion option. Fix types where it is
easy to do so. Cast in cases we know the integer will not be truncated.
Diffstat (limited to 'Source/cm_utf8.c')
-rw-r--r-- | Source/cm_utf8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cm_utf8.c b/Source/cm_utf8.c index 9c11f2b..c9bf259 100644 --- a/Source/cm_utf8.c +++ b/Source/cm_utf8.c @@ -62,7 +62,7 @@ const char* cm_utf8_decode_character(const char* first, const char* last, /* Extract bits from this multi-byte character. */ { unsigned int uc = c & cm_utf8_mask[ones]; - unsigned char left; + int left; for(left = ones-1; left && first != last; --left) { c = (unsigned char)*first++; |