From 7a68d1106b37e16c24e58bc77ce49fc6beadce9c Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 1 May 2026 14:40:06 +0300 Subject: run formatter + Should really get this done automatically somehow --- src/debug.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/debug.c') diff --git a/src/debug.c b/src/debug.c index 538fdfe..2426277 100644 --- a/src/debug.c +++ b/src/debug.c @@ -74,7 +74,8 @@ 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, - (size_t)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); @@ -84,7 +85,8 @@ static void _issue(struct src_issue issue, const char *fmt, va_list args) fprintf(stderr, "%s:%i:%i: %s: ", issue.fctx.fname, issue.loc.first_line, issue.loc.first_col, - issue_level_str(issue.level)); + issue_level_str(issue.level) + ); vfprintf(stderr, fmt, args); fputc('\n', stderr); @@ -135,7 +137,7 @@ void semantic_error(struct scope *scope, struct ast *node, } void type_error(struct scope *scope, struct type *type, - const char *fmt, ...) + const char *fmt, ...) { va_list args; va_start(args, fmt); -- cgit v1.2.3