aboutsummaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2016-03-29 10:16:55 +0000
committerTatsuya Kinoshita <tats@debian.org>2016-03-29 10:16:55 +0000
commitef44dab4cb033d36b0c65866f4cfe975a8b6d65f (patch)
tree9f1c95b3b5fd3b9c1d2736be2d26ecd8ae750f4a /regex.c
parentFix invalid braces when not Linux or FreeBSD (diff)
downloadw3m-ef44dab4cb033d36b0c65866f4cfe975a8b6d65f.tar.gz
w3m-ef44dab4cb033d36b0c65866f4cfe975a8b6d65f.zip
Fix printf format specifier mismatch when REGEX_DEBUG
Diffstat (limited to '')
-rw-r--r--regex.c2
1 files changed, 1 insertions, 1 deletions
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;