summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-01-11 22:17:37 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-01-11 22:17:37 +0000
commitdd2ad168e1539fdc678e9849595a8d5e040cf72a (patch)
tree889adb8fed2af8eb1e7cf6d08f264a0787ba8d30
parentcd2ce96e03956b6fd16109ced944976f6a2e924c (diff)
downloadphp-git-dd2ad168e1539fdc678e9849595a8d5e040cf72a.tar.gz
Reduced compiler warnings in ZE2 build
-rw-r--r--ext/standard/file.c4
-rw-r--r--ext/standard/formatted_print.c2
2 files changed, 3 insertions, 3 deletions
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<Z_STRLEN_PP(args[format_offset])) {
+ while (inpos < (int)Z_STRLEN_PP(args[format_offset])) {
int expprec = 0;
PRINTF_DEBUG(("sprintf: format[%d]='%c'\n", inpos, format[inpos]));