diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2023-10-15 12:47:26 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2023-10-15 12:47:26 -0400 |
| commit | e0a55ba6176df325b65b1768bba929805444bf88 (patch) | |
| tree | 67750e50724f7b5430bf449a38f272369862e9d8 /json.c | |
| parent | 6235f81a3ffb1148c8d16125f1ba6e3b377e0bfa (diff) | |
Format specifiers for size_t should be %zu instead of %lu
Diffstat (limited to 'json.c')
| -rw-r--r-- | json.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(","); |
