File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 2727#include "zend.h"
2828
2929#ifndef ZEND_MM_ALIGNMENT
30- # define ZEND_MM_ALIGNMENT Z_L( 8)
30+ # define ZEND_MM_ALIGNMENT ((size_t) 8)
3131# define ZEND_MM_ALIGNMENT_LOG2 Z_L(3)
3232#elif ZEND_MM_ALIGNMENT < 4
3333# undef ZEND_MM_ALIGNMENT
3434# undef ZEND_MM_ALIGNMENT_LOG2
35- # define ZEND_MM_ALIGNMENT Z_L( 4)
35+ # define ZEND_MM_ALIGNMENT ((size_t) 4)
3636# define ZEND_MM_ALIGNMENT_LOG2 Z_L(2)
3737#endif
3838
39- #define ZEND_MM_ALIGNMENT_MASK ~(ZEND_MM_ALIGNMENT - Z_L(1) )
39+ #define ZEND_MM_ALIGNMENT_MASK ~(ZEND_MM_ALIGNMENT - 1 )
4040
41- #define ZEND_MM_ALIGNED_SIZE (size ) (((size) + ZEND_MM_ALIGNMENT - Z_L(1) ) & ZEND_MM_ALIGNMENT_MASK)
41+ #define ZEND_MM_ALIGNED_SIZE (size ) (((size) + ZEND_MM_ALIGNMENT - 1 ) & ZEND_MM_ALIGNMENT_MASK)
4242
4343#define ZEND_MM_ALIGNED_SIZE_EX (size , alignment ) \
44- (((size) + ((alignment) - Z_L( 1))) & ~((alignment) - Z_L(1) ))
44+ (((size) + ((alignment) - 1)) & ~((alignment) - 1 ))
4545
4646typedef struct _zend_leak_info {
4747 void * addr ;
You can’t perform that action at this time.
0 commit comments