]> granicus.if.org Git - php/commitdiff
Suppress int to char conversion warnings
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 12 Jun 2019 09:51:33 +0000 (11:51 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 12 Jun 2019 09:54:13 +0000 (11:54 +0200)
ext/soap/php_sdl.c

index d06f87d35882779d2d7102fd4e6d5c027c511dc7..d9fea6d3b20ca7e246cc8e5c2f9613c9b7ac19ba 100644 (file)
@@ -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);