]> granicus.if.org Git - php/commitdiff
fix datatype mismatch warnings
authorAnatol Belski <ab@php.net>
Fri, 24 Oct 2014 07:22:51 +0000 (09:22 +0200)
committerAnatol Belski <ab@php.net>
Fri, 24 Oct 2014 18:50:00 +0000 (20:50 +0200)
ext/standard/soundex.c

index feb9a6780eb550d96ad36080ea5fffe5c3c8f792..d882f5cab62393de5f63ad98a8c205162d4c490a 100644 (file)
@@ -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;
                                }