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 8c5e258 + a96f6ff commit 4ff84aaCopy full SHA for 4ff84aa
1 file changed
ext/hash/php_hash.h
@@ -166,7 +166,7 @@ static inline void *php_hash_alloc_context(const php_hash_ops *ops) {
166
/* Zero out context memory so serialization doesn't expose internals */
167
if (ops->context_align > 0) {
168
size_t align = ops->context_align;
169
- char *base = ecalloc(1, ops->context_size + align);
+ char *base = (char *) ecalloc(1, ops->context_size + align);
170
size_t offset = align - ((uintptr_t)base & (align - 1));
171
char *ptr = base + offset;
172
ptr[-1] = (char)offset;
0 commit comments