We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 526ee4f commit f391cd7Copy full SHA for f391cd7
1 file changed
Zend/zend_alloc.c
@@ -177,12 +177,12 @@ typedef zend_ulong zend_mm_bitset; /* 4-byte or 8-byte integer */
177
178
#ifdef PHP_HAVE_BUILTIN_ALIGN_DOWN
179
# define ZEND_MM_ALIGNED_BASE(ptr, alignment) \
180
- __builtin_align_down((ptr), (alignment))
+ __builtin_align_down((void*)(ptr), (alignment))
181
# define ZEND_MM_ALIGNED_OFFSET(ptr, alignment) \
182
(((size_t)(ptr)) - (size_t)ZEND_MM_ALIGNED_BASE(ptr, alignment))
183
#else
184
185
- (((uintptr_t)(ptr)) & ~((alignment) - 1))
+ ((void*)(((uintptr_t)(ptr)) & ~((alignment) - 1)))
186
187
(((size_t)(ptr)) & ((alignment) - 1))
188
#endif
0 commit comments