From 451111dc51df69580d04c9965f70531f50e3d509 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 9 Apr 2024 12:59:07 +0300 Subject: add initial ufcs checks --- src/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/debug.c') 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, -- cgit v1.3