From: Anatol Belski Date: Fri, 24 Oct 2014 07:22:51 +0000 (+0200) Subject: fix datatype mismatch warnings X-Git-Tag: POST_NATIVE_TLS_MERGE^2~49^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4cb58a39369485dffe360b3220f51c95732419e9;p=php fix datatype mismatch warnings --- 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; }