Skip to content

Commit b48a9b8

Browse files
committed
Use size_t instead of zend_long/zend_ulong
1 parent a45410c commit b48a9b8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Zend/zend_alloc.h

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

2929
#ifndef CONFIG_ZEND_MM_ALIGNMENT
30-
# define ZEND_MM_ALIGNMENT Z_UL(8)
31-
# define ZEND_MM_ALIGNMENT_LOG2 Z_L(3)
30+
# define ZEND_MM_ALIGNMENT (size_t)(8)
31+
# define ZEND_MM_ALIGNMENT_LOG2 (size_t)(3)
3232
#elif ZEND_MM_ALIGNMENT < 4
33-
# define ZEND_MM_ALIGNMENT Z_UL(4)
34-
# define ZEND_MM_ALIGNMENT_LOG2 Z_L(2)
33+
# define ZEND_MM_ALIGNMENT (size_t)(4)
34+
# define ZEND_MM_ALIGNMENT_LOG2 (size_t)(2)
3535
#else
36-
# define ZEND_MM_ALIGNMENT Z_UL(CONFIG_ZEND_MM_ALIGNMENT)
37-
# define ZEND_MM_ALIGNMENT_LOG2 Z_L(CONFIG_ZEND_MM_ALIGNMENT_LOG2)
36+
# define ZEND_MM_ALIGNMENT (size_t)(CONFIG_ZEND_MM_ALIGNMENT)
37+
# define ZEND_MM_ALIGNMENT_LOG2 (size_t)(CONFIG_ZEND_MM_ALIGNMENT_LOG2)
3838
#endif
3939

4040
#define ZEND_MM_ALIGNMENT_MASK ~(ZEND_MM_ALIGNMENT - 1)

0 commit comments

Comments
 (0)