diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-09 12:59:07 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-09 12:59:07 +0300 |
| commit | 451111dc51df69580d04c9965f70531f50e3d509 (patch) | |
| tree | 379a7123f2588f149021c896118ce0ded4f5a9cc /src/debug.c | |
| parent | f86cb1e9ec6cb562d1d0ebf4b0fd7119296ff10d (diff) | |
| download | ek-451111dc51df69580d04c9965f70531f50e3d509.tar.gz ek-451111dc51df69580d04c9965f70531f50e3d509.zip | |
add initial ufcs checks
Diffstat (limited to 'src/debug.c')
| -rw-r--r-- | src/debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug.c b/src/debug.c index f4b481d..d16aab2 100644 --- a/src/debug.c +++ b/src/debug.c @@ -73,12 +73,12 @@ static void _issue(struct src_issue issue, const char *fmt, va_list args) { /* get start and end of current line in buffer */ const char *line_start = find_lineno(issue.fctx.fbuf, - issue.loc.first_line); + (size_t)issue.loc.first_line); const char *line_end = strchr(line_start, '\n'); if (!line_end) line_end = strchr(line_start, 0); - const int line_len = line_end - line_start; + const int line_len = (int)(line_end - line_start); fprintf(stderr, "%s:%i:%i: %s: ", issue.fctx.fname, issue.loc.first_line, |
