]> granicus.if.org Git - php/commitdiff
Try to fix msvc build
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 28 Feb 2020 13:48:02 +0000 (14:48 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 28 Feb 2020 13:48:02 +0000 (14:48 +0100)
ext/opcache/ZendAccelerator.c

index 0c8722418c7f8494538408bf3193948b210bb75a..758f8fc4bff51b678ca749a948f439d9b17f97cc 100644 (file)
@@ -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 *));
        }
 }