From: Moriyoshi Koizumi Date: Sat, 11 Jan 2003 22:17:37 +0000 (+0000) Subject: Reduced compiler warnings in ZE2 build X-Git-Tag: PHP_5_0_dev_before_13561_fix~313 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd2ad168e1539fdc678e9849595a8d5e040cf72a;p=php Reduced compiler warnings in ZE2 build --- diff --git a/ext/standard/file.c b/ext/standard/file.c index d6fc9d9543..38fdec6413 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1376,7 +1376,7 @@ PHPAPI PHP_FUNCTION(fgets) ZVAL_STRINGL(return_value, buf, line_len, 0); /* resize buffer if it's much larger than the result. * Only needed if the user requested a buffer size. */ - if (argc > 1 && Z_STRLEN_P(return_value) < len / 2) { + if (argc > 1 && (int)Z_STRLEN_P(return_value) < len / 2) { Z_STRVAL_P(return_value) = erealloc(buf, line_len + 1); } } @@ -1559,7 +1559,7 @@ PHPAPI PHP_FUNCTION(fwrite) } convert_to_string_ex(arg2); convert_to_long_ex(arg3); - num_bytes = MIN(Z_LVAL_PP(arg3), Z_STRLEN_PP(arg2)); + num_bytes = MIN(Z_LVAL_PP(arg3), (int)Z_STRLEN_PP(arg2)); break; default: WRONG_PARAM_COUNT; diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c index d5bd95c4b7..47cc471608 100644 --- a/ext/standard/formatted_print.c +++ b/ext/standard/formatted_print.c @@ -504,7 +504,7 @@ php_formatted_print(int ht, int *len, int use_array, int format_offset TSRMLS_DC currarg = 1; - while (inpos