diff options
| author | Anatol Belski <ab@php.net> | 2017-11-14 17:07:09 +0100 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2017-11-14 17:07:09 +0100 |
| commit | 20d930d8f374913e2d537e0d8aa80a561c605370 (patch) | |
| tree | f521300ff5ab0ad50a441307e873bcbd201d0135 /ext/pgsql/pgsql.c | |
| parent | 13696d7aae264d132bd91dd9e2ba0d53b6b4cc5c (diff) | |
| download | php-git-20d930d8f374913e2d537e0d8aa80a561c605370.tar.gz | |
Fix remaining signedness warnings
Diffstat (limited to 'ext/pgsql/pgsql.c')
| -rw-r--r-- | ext/pgsql/pgsql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index e54580897f..69949d3f9c 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -5783,7 +5783,7 @@ static int php_pgsql_convert_match(const char *str, size_t str_len, const char * options |= PCRE2_CASELESS; } - re = pcre2_compile(regex, PCRE2_ZERO_TERMINATED, options, &errnumber, &err_offset, php_pcre_cctx()); + re = pcre2_compile((PCRE2_SPTR)regex, PCRE2_ZERO_TERMINATED, options, &errnumber, &err_offset, php_pcre_cctx()); if (NULL == re) { pcre2_get_error_message(errnumber, err_msg, sizeof(err_msg)); php_error_docref(NULL, E_WARNING, "Cannot compile regex: '%s'", err_msg); @@ -5796,7 +5796,7 @@ static int php_pgsql_convert_match(const char *str, size_t str_len, const char * php_error_docref(NULL, E_WARNING, "Cannot allocate match data"); return FAILURE; } - res = pcre2_match(re, str, str_len, 0, 0, match_data, php_pcre_mctx()); + res = pcre2_match(re, (PCRE2_SPTR)str, str_len, 0, 0, match_data, php_pcre_mctx()); php_pcre_free_match_data(match_data); pcre2_code_free(re); |
