harec

[hare] Hare compiler, written in C11 for POSIX OSs
Log | Files | Refs | README | LICENSE

commit 1b592803951d5068506f1dc961d30c6536abaec5
parent d5ded03c6fabc9cd07aa56f2cae00f120da47479
Author: Sebastian <sebastian@sebsite.pw>
Date:   Mon, 10 Oct 2022 18:46:19 -0400

check: fix error parameter type

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Msrc/check.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/check.c b/src/check.c @@ -3870,7 +3870,7 @@ resolve_type(struct context *ctx, const struct scope_object *obj) } else { loc = idecl->decl.loc; } - error(ctx, loc, false, "'%s' is not a type", + error(ctx, loc, NULL, "'%s' is not a type", identifier_unparse(&idecl->obj.name)); handle_errors(ctx->errors); }