We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 61a190c + 4ff84aa commit 22a6f16Copy full SHA for 22a6f16
1 file changed
ext/hash/php_hash.h
@@ -164,7 +164,7 @@ static inline void *php_hash_alloc_context(const php_hash_ops *ops) {
164
/* Zero out context memory so serialization doesn't expose internals */
165
if (ops->context_align > 0) {
166
size_t align = ops->context_align;
167
- char *base = ecalloc(1, ops->context_size + align);
+ char *base = (char *) ecalloc(1, ops->context_size + align);
168
size_t offset = align - ((uintptr_t)base & (align - 1));
169
char *ptr = base + offset;
170
ptr[-1] = (char)offset;
0 commit comments