Skip to content

Commit 300d117

Browse files
committed
zend_ini: Make ZEND_INI_GET_ADDR() return a void* pointer
Since the actual type of the storage location is not known, a `void*` is more appropriate and avoids explicit casts that are no more safe than the implicit cast from `void*`.
1 parent cb51737 commit 300d117

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Zend/zend_ini.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,6 @@ typedef struct _zend_ini_parser_param {
257257
# define ZEND_INI_GET_BASE() ((char *) ts_resource(*((int *) mh_arg2)))
258258
#endif
259259

260-
#define ZEND_INI_GET_ADDR() (ZEND_INI_GET_BASE() + (size_t) mh_arg1)
260+
#define ZEND_INI_GET_ADDR() ((void*)(ZEND_INI_GET_BASE() + (size_t) mh_arg1))
261261

262262
#endif /* ZEND_INI_H */

0 commit comments

Comments
 (0)