summaryrefslogtreecommitdiff
path: root/ext/soap/php_sdl.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-12 11:51:33 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-06-12 11:54:13 +0200
commit365a905e00119cb499d8b10c0227f8c0d46213ab (patch)
tree0459e7b4fbe4c813480a951d62d824350075b220 /ext/soap/php_sdl.c
parentd2921af348cc7ba075ef4577a8738414c04f1c94 (diff)
downloadphp-git-365a905e00119cb499d8b10c0227f8c0d46213ab.tar.gz
Suppress int to char conversion warnings
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r--ext/soap/php_sdl.c8
1 files changed, 4 insertions, 4 deletions
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);