aboutsummaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'json.c')
-rw-r--r--json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json.c b/json.c
index 71ada3b..445f81b 100644
--- a/json.c
+++ b/json.c
@@ -44,7 +44,7 @@ static int _json_match(const char *text, match_t *m, int comma, bool verbose)
}
}
printf("\",");
- printf("\"range\":[%ld,%ld]", m->start - text, m->end - text);
+ printf("\"range\":[%zd,%zd]", m->start - text, m->end - text);
comma = 1;
} else {
if (comma) printf(",");