com php-src: fix datatype mismatch warnings: ext/bz2/bz2_ filter.c
| From: | Anatol Belski | Date: | Thu, 30 Oct 2014 19:06:49 +0000 |
| Subject: | com php-src: fix datatype mismatch warnings: ext/bz2/bz2_ filter.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82906@lists.php.net to get a copy of this message | ||
Commit: edfabf19a756bd8023698087d822e420824edfe4
Author: Anatol Belski <ab@php.net> Thu, 30 Oct 2014 17:25:17 +0100
Parents: 05bad6a95778ae0d2de5273b441b87bde2ed0dea
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=edfabf19a756bd8023698087d822e420824edfe4
Log:
fix datatype mismatch warnings
Changed paths:
M ext/bz2/bz2_filter.c
Diff:
diff --git a/ext/bz2/bz2_filter.c b/ext/bz2/bz2_filter.c
index 1c1d6cc..a2a21d7 100644
--- a/ext/bz2/bz2_filter.c
+++ b/ext/bz2/bz2_filter.c
@@ -384,7 +384,7 @@ static php_stream_filter *php_bz2_filter_create(const char *filtername, zval *fi
if (Z_LVAL(tmp) < 1 || Z_LVAL(tmp) > 9) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid parameter given for number of
blocks to allocate. (%pd)", Z_LVAL_P(tmpzval));
} else {
- blockSize100k = Z_LVAL(tmp);
+ blockSize100k = (int)Z_LVAL(tmp);
}
}
@@ -398,7 +398,7 @@ static php_stream_filter *php_bz2_filter_create(const char *filtername, zval *fi
if (Z_LVAL(tmp) < 0 || Z_LVAL(tmp) > 250) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid parameter given for work factor.
(%pd)", Z_LVAL(tmp));
} else {
- workFactor = Z_LVAL(tmp);
+ workFactor = (int)Z_LVAL(tmp);
}
}
}