Skip to content

Commit a7de98f

Browse files
committed
Try to fix msvc build
1 parent b2d01e0 commit a7de98f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4237,7 +4237,8 @@ static void preload_load(void)
42374237
CG(map_ptr_last) = ZCSG(map_ptr_last);
42384238
CG(map_ptr_size) = ZEND_MM_ALIGNED_SIZE_EX(CG(map_ptr_last) + 1, 4096);
42394239
CG(map_ptr_base) = perealloc(CG(map_ptr_base), CG(map_ptr_size) * sizeof(void*), 1);
4240-
memset(CG(map_ptr_base) + old_map_ptr_last, 0, (CG(map_ptr_last) - old_map_ptr_last) * sizeof(void *));
4240+
memset((void **) CG(map_ptr_base) + old_map_ptr_last, 0,
4241+
(CG(map_ptr_last) - old_map_ptr_last) * sizeof(void *));
42414242
}
42424243
}
42434244

0 commit comments

Comments
 (0)