From: Anatol Belski Date: Thu, 30 Oct 2014 16:25:17 +0000 (+0100) Subject: fix datatype mismatch warnings X-Git-Tag: PRE_PHP7_REMOVALS~87^2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=edfabf19a756bd8023698087d822e420824edfe4;p=php fix datatype mismatch warnings --- diff --git a/ext/bz2/bz2_filter.c b/ext/bz2/bz2_filter.c index 1c1d6ccfb6..a2a21d765b 100644 --- a/ext/bz2/bz2_filter.c +++ b/ext/bz2/bz2_filter.c @@ -384,7 +384,7 @@ static php_stream_filter *php_bz2_filter_create(const char *filtername, zval *fi if (Z_LVAL(tmp) < 1 || Z_LVAL(tmp) > 9) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid parameter given for number of blocks to allocate. (%pd)", Z_LVAL_P(tmpzval)); } else { - blockSize100k = Z_LVAL(tmp); + blockSize100k = (int)Z_LVAL(tmp); } } @@ -398,7 +398,7 @@ static php_stream_filter *php_bz2_filter_create(const char *filtername, zval *fi if (Z_LVAL(tmp) < 0 || Z_LVAL(tmp) > 250) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid parameter given for work factor. (%pd)", Z_LVAL(tmp)); } else { - workFactor = Z_LVAL(tmp); + workFactor = (int)Z_LVAL(tmp); } } }