From f66e25a82b4cccb7b3b15ebc8e59e3695b02ddc6 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Fri, 20 Nov 2015 09:14:05 +1100 Subject: Fixed LOB implementation size_t/zend_long mismatch reported by gcov --- ext/oci8/oci8_interface.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/oci8') diff --git a/ext/oci8/oci8_interface.c b/ext/oci8/oci8_interface.c index 7d845fea7c..ec73513024 100644 --- a/ext/oci8/oci8_interface.c +++ b/ext/oci8/oci8_interface.c @@ -534,7 +534,7 @@ PHP_FUNCTION(oci_lob_write) { zval *tmp, *z_descriptor = getThis(); php_oci_descriptor *descriptor; - zend_long data_len; + size_t data_len; zend_long write_len = 0; ub4 bytes_written; char *data; @@ -545,7 +545,7 @@ PHP_FUNCTION(oci_lob_write) } if (ZEND_NUM_ARGS() == 2) { - data_len = MIN(data_len, write_len); + data_len = MIN((zend_long) data_len, write_len); } } else { @@ -554,7 +554,7 @@ PHP_FUNCTION(oci_lob_write) } if (ZEND_NUM_ARGS() == 3) { - data_len = MIN(data_len, write_len); + data_len = MIN((zend_long) data_len, write_len); } } -- cgit v1.2.1