Skip to content

Commit 67a349d

Browse files
authored
ext/bz2: removing useless casts for filter ZendMM parts. (#17887)
1 parent b1841fd commit 67a349d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/bz2/bz2_filter.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ typedef struct _php_bz2_filter_data {
5050

5151
static void *php_bz2_alloc(void *opaque, int items, int size)
5252
{
53-
return (void *)safe_pemalloc(items, size, 0, ((php_bz2_filter_data*)opaque)->persistent);
53+
return safe_pemalloc(items, size, 0, ((php_bz2_filter_data*)opaque)->persistent);
5454
}
5555

5656
static void php_bz2_free(void *opaque, void *address)
5757
{
58-
pefree((void *)address, ((php_bz2_filter_data*)opaque)->persistent);
58+
pefree(address, ((php_bz2_filter_data*)opaque)->persistent);
5959
}
6060
/* }}} */
6161

0 commit comments

Comments
 (0)