From ef44dab4cb033d36b0c65866f4cfe975a8b6d65f Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Tue, 29 Mar 2016 19:16:55 +0900 Subject: Fix printf format specifier mismatch when REGEX_DEBUG --- regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regex.c') diff --git a/regex.c b/regex.c index 5675d09..93406e8 100644 --- a/regex.c +++ b/regex.c @@ -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; -- cgit v1.2.3