Skip to content

Commit a5a4408

Browse files
committed
ext/random: remove unnecessary cast from void*
1 parent 740eecf commit a5a4408

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/random/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ PHPAPI bool php_random_hex2bin_le(const zend_string *hexstr, void *dest)
358358
{
359359
size_t len = hexstr->len >> 1;
360360
const unsigned char *str = (unsigned char *) ZSTR_VAL(hexstr);
361-
unsigned char *ptr = (unsigned char *) dest;
361+
unsigned char *ptr = dest;
362362
size_t i = 0;
363363

364364
#ifdef WORDS_BIGENDIAN

0 commit comments

Comments
 (0)