aboutsummaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2023-10-15 12:47:26 -0400
committerBruce Hill <bruce@bruce-hill.com>2023-10-15 12:47:26 -0400
commite0a55ba6176df325b65b1768bba929805444bf88 (patch)
tree67750e50724f7b5430bf449a38f272369862e9d8 /json.c
parent6235f81a3ffb1148c8d16125f1ba6e3b377e0bfa (diff)
Format specifiers for size_t should be %zu instead of %lu
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(",");