summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-simple.c2
-rw-r--r--strings/ctype-ucs2.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/strings/ctype-simple.c b/strings/ctype-simple.c
index f6ac740730b..d6f2f0e5fe5 100644
--- a/strings/ctype-simple.c
+++ b/strings/ctype-simple.c
@@ -904,7 +904,7 @@ int my_longlong10_to_str_8bit(CHARSET_INFO *cs __attribute__((unused)),
while (long_val != 0)
{
long quo= long_val/10;
- *--p = '0' + (char)(long_val - quo*10);
+ *--p = (char) ('0' + (long_val - quo*10));
long_val= quo;
}
diff --git a/strings/ctype-ucs2.c b/strings/ctype-ucs2.c
index b0d882d3943..80a7bd84601 100644
--- a/strings/ctype-ucs2.c
+++ b/strings/ctype-ucs2.c
@@ -1063,7 +1063,7 @@ int my_ll10tostr_ucs2(CHARSET_INFO *cs __attribute__((unused)),
while (long_val != 0)
{
long quo= long_val/10;
- *--p = '0' + (char)(long_val - quo*10);
+ *--p = (char) ('0' + (long_val - quo*10));
long_val= quo;
}