From: Nikita Popov Date: Tue, 23 Feb 2021 11:22:34 +0000 (+0100) Subject: Fix Windows build X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc1a012c494fa6f2c7a33c83ed2b6c51b69ec760;p=php Fix Windows build Don't add to a void pointer. --- diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c b/ext/mysqlnd/mysqlnd_wireprotocol.c index 635ef3f6e8..8cb94b6598 100644 --- a/ext/mysqlnd/mysqlnd_wireprotocol.c +++ b/ext/mysqlnd/mysqlnd_wireprotocol.c @@ -1407,7 +1407,7 @@ php_mysqlnd_read_row_ex(MYSQLND_PFC * pfc, memcpy(buffer->ptr, buf, *data_size); efree(buf); } - p = buffer->ptr + *data_size; + p = (zend_uchar *) buffer->ptr + *data_size; *data_size += header.size; if (UNEXPECTED(PASS != (ret = pfc->data->m.receive(pfc, vio, p, header.size, stats, error_info)))) {