summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-10-24 09:22:51 +0200
committerAnatol Belski <ab@php.net>2014-10-24 20:50:00 +0200
commit4cb58a39369485dffe360b3220f51c95732419e9 (patch)
tree3337d044d6997b3d9421fde314fd09968b6c5c41
parent444b465f3d682adf8a726576eb2f5ec5ccdd35a0 (diff)
downloadphp-git-4cb58a39369485dffe360b3220f51c95732419e9.tar.gz
fix datatype mismatch warnings
-rw-r--r--ext/standard/soundex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/soundex.c b/ext/standard/soundex.c
index feb9a6780e..d882f5cab6 100644
--- a/ext/standard/soundex.c
+++ b/ext/standard/soundex.c
@@ -78,7 +78,7 @@ PHP_FUNCTION(soundex)
if (code >= 'A' && code <= 'Z') {
if (_small == 0) {
/* remember first valid char */
- soundex[_small++] = code;
+ soundex[_small++] = (char)code;
last = soundex_table[code - 'A'];
}
else {
@@ -88,7 +88,7 @@ PHP_FUNCTION(soundex)
code = soundex_table[code - 'A'];
if (code != last) {
if (code != 0) {
- soundex[_small++] = code;
+ soundex[_small++] = (char)code;
}
last = code;
}