diff options
author | Anatol Belski <ab@php.net> | 2018-03-26 15:08:22 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2018-03-26 15:10:16 +0200 |
commit | 6cce3548f1abee6813809331c7028310ece75b89 (patch) | |
tree | 8a79161a5b30aabe1e179655b8ffed60ba5a01bb /ext/pdo | |
parent | e9cbd3c4b0d5a5437959b6f8819e49ba33c3cf28 (diff) | |
download | php-git-6cce3548f1abee6813809331c7028310ece75b89.tar.gz |
Fix datatypes
Diffstat (limited to 'ext/pdo')
-rw-r--r-- | ext/pdo/pdo_sql_parser.c | 6 | ||||
-rw-r--r-- | ext/pdo/pdo_sql_parser.re | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/pdo/pdo_sql_parser.c b/ext/pdo/pdo_sql_parser.c index 4d84f35fed..a1aabf7d86 100644 --- a/ext/pdo/pdo_sql_parser.c +++ b/ext/pdo/pdo_sql_parser.c @@ -1,4 +1,4 @@ -/* Generated by re2c 1.0.2 */ +/* Generated by re2c 1.0.3 */ #line 1 "ext/pdo/pdo_sql_parser.re" /* +----------------------------------------------------------------------+ @@ -399,7 +399,7 @@ PDO_API int pdo_parse_params(pdo_stmt_t *stmt, char *inquery, size_t inquery_len { Scanner s; char *ptr, *newbuffer; - int t; + ptrdiff_t t; uint32_t bindno = 0; int ret = 0; size_t newbuffer_len; @@ -416,7 +416,7 @@ PDO_API int pdo_parse_params(pdo_stmt_t *stmt, char *inquery, size_t inquery_len while((t = scan(&s)) != PDO_PARSER_EOI) { if (t == PDO_PARSER_BIND || t == PDO_PARSER_BIND_POS) { if (t == PDO_PARSER_BIND) { - int len = s.cur - s.tok; + ptrdiff_t len = s.cur - s.tok; if ((inquery < (s.cur - len)) && isalnum(*(s.cur - len - 1))) { continue; } diff --git a/ext/pdo/pdo_sql_parser.re b/ext/pdo/pdo_sql_parser.re index 60f0519065..76e4190ac4 100644 --- a/ext/pdo/pdo_sql_parser.re +++ b/ext/pdo/pdo_sql_parser.re @@ -85,7 +85,7 @@ PDO_API int pdo_parse_params(pdo_stmt_t *stmt, char *inquery, size_t inquery_len { Scanner s; char *ptr, *newbuffer; - int t; + ptrdiff_t t; uint32_t bindno = 0; int ret = 0; size_t newbuffer_len; @@ -102,7 +102,7 @@ PDO_API int pdo_parse_params(pdo_stmt_t *stmt, char *inquery, size_t inquery_len while((t = scan(&s)) != PDO_PARSER_EOI) { if (t == PDO_PARSER_BIND || t == PDO_PARSER_BIND_POS) { if (t == PDO_PARSER_BIND) { - int len = s.cur - s.tok; + ptrdiff_t len = s.cur - s.tok; if ((inquery < (s.cur - len)) && isalnum(*(s.cur - len - 1))) { continue; } |