From: Levi Morrison Date: Thu, 17 Dec 2020 04:24:31 +0000 (-0700) Subject: Fix ubsan error on Mac X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95a4e1ea3b689c6bdc666435933047df4aff3f6f;p=php 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' --- diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 098dda104a..750a4a6375 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -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