From: David CARLIER Date: Sat, 30 Jan 2021 09:47:52 +0000 (+0000) Subject: Fix ubsan warning on macos X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=559fc46b9fcdb014b0ac43ff0228f663ce78ccb0;p=php Fix ubsan warning on macos Closes GH-6652. --- diff --git a/ext/opcache/shared_alloc_mmap.c b/ext/opcache/shared_alloc_mmap.c index 389c79114a..6627633694 100644 --- a/ext/opcache/shared_alloc_mmap.c +++ b/ext/opcache/shared_alloc_mmap.c @@ -50,7 +50,7 @@ static int create_segments(size_t requested_size, zend_shared_segment ***shared_ #endif #ifdef VM_MAKE_TAG /* allows tracking segments via tools such as vmmap */ - fd = VM_MAKE_TAG(251); + fd = VM_MAKE_TAG(251U); #endif #ifdef MAP_HUGETLB size_t huge_page_size = 2 * 1024 * 1024;