Skip to content

Commit 584514d

Browse files
committed
Change oniguruma values from size_t to ptrdiff_t as that's what they return
1 parent 6e40ec7 commit 584514d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ext/mbstring/php_mbregex.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,8 @@ _php_mb_regex_ereg_search_exec(INTERNAL_FUNCTION_PARAMETERS, int mode)
13901390
char *arg_pattern = NULL, *arg_options = NULL;
13911391
size_t arg_pattern_len, arg_options_len;
13921392
int err;
1393-
size_t n, i, pos, len, beg, end;
1393+
size_t n, i, pos, len;
1394+
ptrdiff_t beg, end;
13941395
OnigOptionType option;
13951396
OnigUChar *str;
13961397
OnigSyntaxType *syntax;
@@ -1585,7 +1586,8 @@ PHP_FUNCTION(mb_ereg_search_init)
15851586
Get matched substring of the last time */
15861587
PHP_FUNCTION(mb_ereg_search_getregs)
15871588
{
1588-
size_t n, i, len, beg, end;
1589+
size_t n, i, len;
1590+
ptrdiff_t beg, end;
15891591
OnigUChar *str;
15901592

15911593
if (zend_parse_parameters_none() == FAILURE) {

0 commit comments

Comments
 (0)