From 4cb58a39369485dffe360b3220f51c95732419e9 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 24 Oct 2014 09:22:51 +0200 Subject: [PATCH] fix datatype mismatch warnings --- ext/standard/soundex.c | 4 ++-- 1 file 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; } -- 2.40.0