From 8eda7d94100375a1de65c6b9948d886cf24a965a Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sun, 18 Feb 2018 19:07:25 +0100 Subject: [PATCH] Remove effectless assignment --- ext/gmp/gmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c index 20d3d206e0..9a40cce4b2 100644 --- a/ext/gmp/gmp.c +++ b/ext/gmp/gmp.c @@ -571,7 +571,7 @@ static int gmp_serialize(zval *object, unsigned char **buffer, size_t *buf_len, mpz_ptr gmpnum = GET_GMP_FROM_ZVAL(object); smart_str buf = {0}; zval zv; - php_serialize_data_t serialize_data = (php_serialize_data_t) data; + php_serialize_data_t serialize_data; PHP_VAR_SERIALIZE_INIT(serialize_data); @@ -597,7 +597,7 @@ static int gmp_unserialize(zval *object, zend_class_entry *ce, const unsigned ch const unsigned char *p, *max; zval *zv; int retval = FAILURE; - php_unserialize_data_t unserialize_data = (php_unserialize_data_t) data; + php_unserialize_data_t unserialize_data; zval object_copy; PHP_VAR_UNSERIALIZE_INIT(unserialize_data); -- 2.40.0