summaryrefslogtreecommitdiff
path: root/ext/standard/cyr_convert.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/cyr_convert.c')
-rw-r--r--ext/standard/cyr_convert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/cyr_convert.c b/ext/standard/cyr_convert.c
index 086bbe383b..ed333b42f8 100644
--- a/ext/standard/cyr_convert.c
+++ b/ext/standard/cyr_convert.c
@@ -210,7 +210,7 @@ static char * php_convert_cyr_string(unsigned char *str, int length, char from,
from_table = NULL;
to_table = NULL;
- switch (toupper(from))
+ switch (toupper((int)(unsigned char)from))
{
case 'W':
from_table = _cyr_win1251;
@@ -232,7 +232,7 @@ static char * php_convert_cyr_string(unsigned char *str, int length, char from,
break;
}
- switch (toupper(to))
+ switch (toupper((int)(unsigned char)to))
{
case 'W':
to_table = _cyr_win1251;