summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-11-14 17:07:09 +0100
committerAnatol Belski <ab@php.net>2017-11-14 17:07:09 +0100
commit20d930d8f374913e2d537e0d8aa80a561c605370 (patch)
treef521300ff5ab0ad50a441307e873bcbd201d0135 /ext/zip/php_zip.c
parent13696d7aae264d132bd91dd9e2ba0d53b6b4cc5c (diff)
downloadphp-git-20d930d8f374913e2d537e0d8aa80a561c605370.tar.gz
Fix remaining signedness warnings
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r--ext/zip/php_zip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c
index 5bea9d934c..fdc3e90345 100644
--- a/ext/zip/php_zip.c
+++ b/ext/zip/php_zip.c
@@ -703,7 +703,7 @@ int php_zip_pcre(zend_string *regexp, char *path, int path_len, zval *return_val
zend_string_release(namelist[i]);
continue;
}
- rc = pcre2_match(re, ZSTR_VAL(namelist[i]), ZSTR_LEN(namelist[i]), 0, preg_options, match_data, mctx);
+ rc = pcre2_match(re, (PCRE2_SPTR)ZSTR_VAL(namelist[i]), ZSTR_LEN(namelist[i]), 0, preg_options, match_data, mctx);
php_pcre_free_match_data(match_data);
/* 0 means that the vector is too small to hold all the captured substring offsets */
if (rc < 0) {