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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user