summaryrefslogtreecommitdiff
path: root/ext/zlib
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-08-10 10:40:59 +0000
committerMarcus Boerger <helly@php.net>2002-08-10 10:40:59 +0000
commit289607970cdab826ee468a5ab9ff5298ebf2501c (patch)
tree0778237e30e6eef8ff03a09d5f38b0ebff4ac41b /ext/zlib
parent7c08781d50f59c66eca09445478e520fbadfe5bf (diff)
downloadphp-git-289607970cdab826ee468a5ab9ff5298ebf2501c.tar.gz
should fix all windows warnings
Diffstat (limited to 'ext/zlib')
-rw-r--r--ext/zlib/zlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 10ef6aa273..fbb2554ddc 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -679,7 +679,7 @@ static int php_do_deflate(uint str_length, Bytef **p_buffer, uint *p_buffer_len,
int start_offset = (do_start?10:0);
int end_offset = (do_end?8:0);
- outlen = sizeof(char) * (str_length * 1.001 + 12) + 1; /* leave some room for a trailing \0 */
+ outlen = (uint)(sizeof(char) * (str_length * 1.001f + 12) + 1); /* leave some room for a trailing \0 */
if ((outlen+start_offset+end_offset) > *p_buffer_len) {
buffer = (Bytef *) emalloc(outlen+start_offset+end_offset);
} else {
@@ -1014,7 +1014,7 @@ int php_enable_output_compression(int buffer_size TSRMLS_DC)
}
php_start_ob_buffer(NULL, buffer_size, 0 TSRMLS_CC);
- php_ob_set_internal_handler(php_gzip_output_handler, buffer_size*1.5, "zlib output compression", 0 TSRMLS_CC);
+ php_ob_set_internal_handler(php_gzip_output_handler, (uint)(buffer_size*1.5f), "zlib output compression", 0 TSRMLS_CC);
if (ZLIBG(output_handler) && strlen(ZLIBG(output_handler))) {
php_start_ob_buffer_named(ZLIBG(output_handler), 0, 1 TSRMLS_CC);
}