Skip to content

Commit e36b81b

Browse files
committed
Change do int
1 parent 2503a4b commit e36b81b

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
@@ -1391,7 +1391,8 @@ _php_mb_regex_ereg_search_exec(INTERNAL_FUNCTION_PARAMETERS, int mode)
13911391
size_t arg_pattern_len, arg_options_len;
13921392
int err;
13931393
size_t n, i, pos, len;
1394-
ptrdiff_t beg, end;
1394+
/* Stored as int* in the OnigRegion struct */
1395+
int beg, end;
13951396
OnigOptionType option;
13961397
OnigUChar *str;
13971398
OnigSyntaxType *syntax;
@@ -1587,7 +1588,8 @@ PHP_FUNCTION(mb_ereg_search_init)
15871588
PHP_FUNCTION(mb_ereg_search_getregs)
15881589
{
15891590
size_t n, i, len;
1590-
ptrdiff_t beg, end;
1591+
/* Stored as int* in the OnigRegion struct */
1592+
int beg, end;
15911593
OnigUChar *str;
15921594

15931595
if (zend_parse_parameters_none() == FAILURE) {

0 commit comments

Comments
 (0)