From 8e1f89bc6f68937515675fecde07de1e2f58e1f5 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Fri, 8 Nov 2002 18:40:54 +0000 Subject: [PATCH] Use proper types --- ext/iconv/iconv.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index f0f4af5e2a7..5c77299dfa6 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -359,15 +359,16 @@ static void _php_iconv_show_error(php_iconv_err_t err, const char *in_charset, c PHP_NAMED_FUNCTION(php_if_iconv) { char *in_charset, *out_charset, *in_buffer, *out_buffer; - unsigned int out_len; - int in_charset_len, out_charset_len, in_buffer_len, err; + size_t out_len; + int in_charset_len, out_charset_len, in_buffer_len; + php_iconv_err_t err; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss", &in_charset, &in_charset_len, &out_charset, &out_charset_len, &in_buffer, &in_buffer_len) == FAILURE) return; - err = php_iconv_string(in_buffer, in_buffer_len, - &out_buffer, &out_len, in_charset, out_charset); + err = php_iconv_string(in_buffer, (size_t)in_buffer_len, + &out_buffer, &out_len, in_charset, out_charset); _php_iconv_show_error(err, in_charset, out_charset TSRMLS_CC); if (out_buffer != NULL) { RETVAL_STRINGL(out_buffer, out_len, 0);