Fix printf format specifier mismatch when REGEX_DEBUG

This commit is contained in:
Tatsuya Kinoshita
2016-03-29 19:16:55 +09:00
parent 045aae709f
commit ef44dab4cb

View File

@@ -580,7 +580,7 @@ regmatch_iter(struct MatchingContext1 *c,
c->lastpos = c->str;
#ifdef REGEX_DEBUG
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
YIELD(1, c, 7);
return 0;