Skip to content

Commit 95a4e1e

Browse files
committed
Fix ubsan error on Mac
Fixes this error: > Zend/zend_alloc.c:473:73: runtime error: left shift of 250 by 24 places cannot be represented in type 'int'
1 parent 58d459f commit 95a4e1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static size_t _real_page_size = ZEND_MM_PAGE_SIZE;
117117
/* Mac allows to track anonymous page via vmmap per TAG id.
118118
* user land applications are allowed to take from 240 to 255.
119119
*/
120-
# define ZEND_MM_FD (250<<24)
120+
# define ZEND_MM_FD (250u << 24u)
121121
#endif
122122

123123
#ifndef ZEND_MM_STAT

0 commit comments

Comments
 (0)