com php-src: Suppress int to char conversion warnings: ext/soap/php_sdl.c
| From: | Nikita Popov | Date: | Wed, 12 Jun 2019 09:54:13 +0000 |
| Subject: | com php-src: Suppress int to char conversion warnings: ext/soap/php_sdl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106702@lists.php.net to get a copy of this message | ||
Commit: 365a905e00119cb499d8b10c0227f8c0d46213ab
Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 12 Jun 2019 11:51:33 +0200
Parents: d2921af348cc7ba075ef4577a8738414c04f1c94
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=365a905e00119cb499d8b10c0227f8c0d46213ab
Log:
Suppress int to char conversion warnings
Changed paths:
M ext/soap/php_sdl.c
Diff:
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c
index d06f87d..d9fea6d 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);