com php-src: fix datatype mismatch warnings: ext/standard/soundex.c
| From: | Anatol Belski | Date: | Fri, 24 Oct 2014 18:50:00 +0000 |
| Subject: | com php-src: fix datatype mismatch warnings: ext/standard/soundex.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82642@lists.php.net to get a copy of this message | ||
Commit: 4cb58a39369485dffe360b3220f51c95732419e9
Author: Anatol Belski <ab@php.net> Fri, 24 Oct 2014 09:22:51 +0200
Parents: 444b465f3d682adf8a726576eb2f5ec5ccdd35a0
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4cb58a39369485dffe360b3220f51c95732419e9
Log:
fix datatype mismatch warnings
Changed paths:
M ext/standard/soundex.c
Diff:
diff --git a/ext/standard/soundex.c b/ext/standard/soundex.c
index feb9a67..d882f5c 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;
}