Skip to content

Commit d02d745

Browse files
Changed int to SSize_t for bytes to push
1 parent cb18df4 commit d02d745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regexec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ STATIC CHECKPOINT
227227
S_regcppush(pTHX_ const regexp *rex, I32 parenfloor, U32 maxopenparen _pDEPTH)
228228
{
229229
const int retval = PL_savestack_ix;
230-
const int paren_bytes_to_push = sizeof(*rex->offs) * (maxopenparen - parenfloor);
230+
const SSize_t paren_bytes_to_push = sizeof(*rex->offs) * (maxopenparen - parenfloor);
231231
/* Number of savestack[] entries to be filled by the paren data */
232232
const int paren_elems_to_push = (paren_bytes_to_push + sizeof(*PL_savestack) - 1) / sizeof(*PL_savestack);
233233
const UV total_elems = paren_elems_to_push + REGCP_OTHER_ELEMS;

0 commit comments

Comments
 (0)