From: Nikita Popov Date: Wed, 12 Jun 2019 09:51:33 +0000 (+0200) Subject: Suppress int to char conversion warnings X-Git-Tag: php-7.4.0alpha1~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=365a905e00119cb499d8b10c0227f8c0d46213ab;p=php Suppress int to char conversion warnings --- diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index d06f87d358..d9fea6d3b2 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -1181,10 +1181,10 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri) #define WSDL_CACHE_GET_N(ret,n,buf) memcpy(ret,*buf,n); *buf += n; #define WSDL_CACHE_SKIP(n,buf) *buf += n; -#define WSDL_CACHE_PUT_INT(val,buf) smart_str_appendc(buf,val & 0xff); \ - smart_str_appendc(buf,(val >> 8) & 0xff); \ - smart_str_appendc(buf,(val >> 16) & 0xff); \ - smart_str_appendc(buf,(val >> 24) & 0xff); +#define WSDL_CACHE_PUT_INT(val,buf) smart_str_appendc(buf,(char)(val & 0xff)); \ + smart_str_appendc(buf,(char)((val >> 8) & 0xff)); \ + smart_str_appendc(buf,(char)((val >> 16) & 0xff)); \ + smart_str_appendc(buf,(char)((val >> 24) & 0xff)); #define WSDL_CACHE_PUT_1(val,buf) smart_str_appendc(buf,val); #define WSDL_CACHE_PUT_N(val,n,buf) smart_str_appendl(buf,(char*)val,n);