Fix printf format specifier mismatch when REGEX_DEBUG
This commit is contained in:
2
regex.c
2
regex.c
@@ -580,7 +580,7 @@ regmatch_iter(struct MatchingContext1 *c,
|
|||||||
c->lastpos = c->str;
|
c->lastpos = c->str;
|
||||||
#ifdef REGEX_DEBUG
|
#ifdef REGEX_DEBUG
|
||||||
if (verbose)
|
if (verbose)
|
||||||
printf("Succeed: %s %d\n", c->str, c->lastpos - c->str);
|
printf("Succeed: %s %ld\n", c->str, (long)(c->lastpos - c->str));
|
||||||
#endif
|
#endif
|
||||||
YIELD(1, c, 7);
|
YIELD(1, c, 7);
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user