From: Nikita Popov Date: Fri, 28 Feb 2020 13:48:02 +0000 (+0100) Subject: Try to fix msvc build X-Git-Tag: php-7.4.7RC1~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7de98fb12770191a71d353a1ebef314300adaa2;p=php Try to fix msvc build --- diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 0c8722418c..758f8fc4bf 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -4237,7 +4237,8 @@ static void preload_load(void) CG(map_ptr_last) = ZCSG(map_ptr_last); CG(map_ptr_size) = ZEND_MM_ALIGNED_SIZE_EX(CG(map_ptr_last) + 1, 4096); CG(map_ptr_base) = perealloc(CG(map_ptr_base), CG(map_ptr_size) * sizeof(void*), 1); - memset(CG(map_ptr_base) + old_map_ptr_last, 0, (CG(map_ptr_last) - old_map_ptr_last) * sizeof(void *)); + memset((void **) CG(map_ptr_base) + old_map_ptr_last, 0, + (CG(map_ptr_last) - old_map_ptr_last) * sizeof(void *)); } }