1
0
mirror of https://github.com/php/php-src.git synced 2026-04-04 22:52:40 +02:00

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'
This commit is contained in:
Levi Morrison
2020-12-16 21:24:31 -07:00
parent 58d459f1ef
commit 95a4e1ea3b

View File

@@ -117,7 +117,7 @@ static size_t _real_page_size = ZEND_MM_PAGE_SIZE;
/* Mac allows to track anonymous page via vmmap per TAG id.
* user land applications are allowed to take from 240 to 255.
*/
# define ZEND_MM_FD (250<<24)
# define ZEND_MM_FD (250u << 24u)
#endif
#ifndef ZEND_MM_STAT