From 559fc46b9fcdb014b0ac43ff0228f663ce78ccb0 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sat, 30 Jan 2021 09:47:52 +0000 Subject: [PATCH] Fix ubsan warning on macos Closes GH-6652. --- ext/opcache/shared_alloc_mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1