Skip to content

Commit 981fdd9

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: fix cross compilation failure due to size_t typecast in define
2 parents ca8657a + f0f5c41 commit 981fdd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_alloc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
#include "zend.h"
2828

2929
#ifndef ZEND_MM_ALIGNMENT
30-
# define ZEND_MM_ALIGNMENT ((size_t) 8)
30+
# define ZEND_MM_ALIGNMENT Z_UL(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 ((size_t) 4)
35+
# define ZEND_MM_ALIGNMENT Z_UL(4)
3636
# define ZEND_MM_ALIGNMENT_LOG2 Z_L(2)
3737
#endif
3838

0 commit comments

Comments
 (0)