com php-src: fix datatype mismatches: ext/filter/sanitizing_f ilters.c
| From: | Anatol Belski | Date: | Thu, 30 Oct 2014 19:06:53 +0000 |
| Subject: | com php-src: fix datatype mismatches: ext/filter/sanitizing_f ilters.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82901@lists.php.net to get a copy of this message | ||
Commit: e0ee1fbc2699edd6ea731f1ec1a500c33a76242c
Author: Anatol Belski <ab@php.net> Thu, 30 Oct 2014 20:06:12 +0100
Parents: f6f81b6545bbb1a6c100aa5e074eda0402867d2f
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e0ee1fbc2699edd6ea731f1ec1a500c33a76242c
Log:
fix datatype mismatches
Changed paths:
M ext/filter/sanitizing_filters.c
Diff:
diff --git a/ext/filter/sanitizing_filters.c b/ext/filter/sanitizing_filters.c
index 083b538...851238f 100644
--- a/ext/filter/sanitizing_filters.c
+++ b/ext/filter/sanitizing_filters.c
@@ -30,7 +30,7 @@ typedef unsigned long filter_map[256];
static void php_filter_encode_html(zval *value, const unsigned char *chars)
{
smart_str str = {0};
- int len = Z_STRLEN_P(value);
+ size_t len = Z_STRLEN_P(value);
unsigned char *s = (unsigned char *)Z_STRVAL_P(value);
unsigned char *e = s + len;
@@ -147,7 +147,7 @@ static void filter_map_init(filter_map *map)
static void filter_map_update(filter_map *map, int flag, const unsigned char *allowed_list)
{
- int l, i;
+ size_t l, i;
l = strlen((const char*)allowed_list);
for (i = 0; i < l; ++i) {