From ee396aa56650b93578c4404ccff6471cc3072daa Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Tue, 17 Nov 2015 18:57:51 +0100 Subject: [PATCH] Revert "Fixed compilation on 32-bit Linux" This reverts commit 11c9729a9ca7b064936106e03fabadb8ab6f89fa. --- ext/mysqlnd/mysqlnd_portability.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/mysqlnd/mysqlnd_portability.h b/ext/mysqlnd/mysqlnd_portability.h index efac812c24..b9a83e6292 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) { \ - *(((char *)(T)))= (zend_uchar) ((A));\ - *(((char *)(T))+1)=(zend_uchar) (((uint32_t) (A) >> 8));\ - *(((char *)(T))+2)=(zend_uchar) (((A) >> 16)); } + *(T)= (zend_uchar) ((A));\ + *(T+1)=(zend_uchar) (((uint32_t) (A) >> 8));\ + *(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));\ -- 2.40.0