diff options
author | jimw@mysql.com <> | 2005-03-18 16:12:25 -0800 |
---|---|---|
committer | jimw@mysql.com <> | 2005-03-18 16:12:25 -0800 |
commit | ee2b4ec959b5813eb2105ea068ae3f725b106a3b (patch) | |
tree | 61d6303821b0ae97f521facf399af6c9ba99e342 /strings | |
parent | 348c285d0f06b46809758f26ca92d6ee6155bac9 (diff) | |
download | mariadb-git-ee2b4ec959b5813eb2105ea068ae3f725b106a3b.tar.gz |
Eliminate warnings noticed by VC7. This includes fixing my_mmap() on
Windows to call CreateFileMapping() with correct arguments, and
propogating the introduction of query_id_t to everywhere query ids are
passed around. (Bug #8826)
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-simple.c | 2 | ||||
-rw-r--r-- | strings/ctype-ucs2.c | 2 | ||||
-rw-r--r-- | strings/ctype-utf8.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/strings/ctype-simple.c b/strings/ctype-simple.c index 61e7cf1571b..91888771c80 100644 --- a/strings/ctype-simple.c +++ b/strings/ctype-simple.c @@ -894,7 +894,7 @@ int my_longlong10_to_str_8bit(CHARSET_INFO *cs __attribute__((unused)), while (long_val != 0) { long quo= long_val/10; - *--p = '0' + (long_val - quo*10); + *--p = '0' + (char)(long_val - quo*10); long_val= quo; } diff --git a/strings/ctype-ucs2.c b/strings/ctype-ucs2.c index 797bc9f9047..72483ce5c4c 100644 --- a/strings/ctype-ucs2.c +++ b/strings/ctype-ucs2.c @@ -1049,7 +1049,7 @@ int my_ll10tostr_ucs2(CHARSET_INFO *cs __attribute__((unused)), while (long_val != 0) { long quo= long_val/10; - *--p = '0' + (long_val - quo*10); + *--p = '0' + (char)(long_val - quo*10); long_val= quo; } diff --git a/strings/ctype-utf8.c b/strings/ctype-utf8.c index 187e5cb9e4a..3b52577c358 100644 --- a/strings/ctype-utf8.c +++ b/strings/ctype-utf8.c @@ -2264,8 +2264,8 @@ static int my_strnxfrm_utf8(CHARSET_INFO *cs, plane=(wc>>8) & 0xFF; wc = uni_plane[plane] ? uni_plane[plane][wc & 0xFF].sort : wc; - *dst++= wc >> 8; - *dst++= wc & 0xFF; + *dst++= (uchar)(wc >> 8); + *dst++= (uchar)(wc & 0xFF); } |