com php-src: Fixed compilation on 32-bit Linux: ext/mysqlnd/mys qlnd_portability.h
| From: | Dmitry Stogov | Date: | Tue, 17 Nov 2015 16:01:50 +0000 |
| Subject: | com php-src: Fixed compilation on 32-bit Linux: ext/mysqlnd/mys qlnd_portability.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89889@lists.php.net to get a copy of this message | ||
Commit: 11c9729a9ca7b064936106e03fabadb8ab6f89fa
Author: Dmitry Stogov <dmitry@zend.com> Tue, 17 Nov 2015 19:01:50 +0300
Parents: a6b79f08b32ac1a25d855ea72458788f7d10c204
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=11c9729a9ca7b064936106e03fabadb8ab6f89fa
Log:
Fixed compilation on 32-bit Linux
Changed paths:
M ext/mysqlnd/mysqlnd_portability.h
Diff:
diff --git a/ext/mysqlnd/mysqlnd_portability.h b/ext/mysqlnd/mysqlnd_portability.h
index b9a83e6..efac812 100644
--- a/ext/mysqlnd/mysqlnd_portability.h
+++ b/ext/mysqlnd/mysqlnd_portability.h
@@ -208,9 +208,9 @@ This file is public domain and comes with NO WARRANTY of any kind */
#define sint8korr(A) (*((int64_t *) (A)))
#define int2store(T,A) *((uint16_t*) (T))= (uint16_t) (A)
#define int3store(T,A) { \
- *(T)= (zend_uchar) ((A));\
- *(T+1)=(zend_uchar) (((uint32_t) (A) >> 8));\
- *(T+2)=(zend_uchar) (((A) >> 16)); }
+ *(((char *)(T)))= (zend_uchar) ((A));\
+ *(((char *)(T))+1)=(zend_uchar) (((uint32_t) (A) >> 8));\
+ *(((char *)(T))+2)=(zend_uchar) (((A) >> 16)); }
#define int4store(T,A) *((zend_long *) (T))= (zend_long) (A)
#define int5store(T,A) { \
*((zend_uchar *)(T))= (zend_uchar)((A));\