harec

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

commit 8343145ebf02b4a351b9a7fda1a402fbd7c512ca
parent 2f73c197e3b0903e38e430cb9936d9fd11dfc219
Author: Bor Grošelj Simić <bgs@turminal.net>
Date:   Thu,  2 Jun 2022 00:33:43 +0200

s/ident/name/ in scope_lookup call

Signed-off-by: Bor Grošelj Simić <bgs@turminal.net>

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

diff --git a/src/check.c b/src/check.c @@ -3856,7 +3856,7 @@ wrap_resolver(struct context *ctx, const struct scope_object *obj, // ensure this declaration wasn't already scanned struct incomplete_declaration *idecl = (struct incomplete_declaration *)obj; - obj = scope_lookup(ctx->scope, &idecl->obj.ident); + obj = scope_lookup(ctx->scope, &idecl->obj.name); if (obj && obj->otype != O_SCAN) { goto exit; }