Skip to content

Commit 2055847

Browse files
committed
fix implicit conversion of int to void*
1 parent 6ab412d commit 2055847

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

runtime32/runtime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,9 +660,9 @@ extern void* LregexpMatch (regex_t *b, char *s, int pos) {
660660
//printf ("regexpMatch %p: %s, res=%d so=%d eo=%d\n", b, s + UNBOX(pos), res, match.rm_so, match.rm_eo);
661661

662662
if (res == 0 && match.rm_so == 0) {
663-
return BOX(match.rm_eo);
663+
return (void*)BOX(match.rm_eo);
664664
} else {
665-
return BOX(-1);
665+
return (void*)BOX(-1);
666666
}
667667
}
668668

0 commit comments

Comments
 (0)