From c2b7c1c123955e71fe4be8cd3ad62d71b22986cb Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 5 Jun 2023 07:36:11 +0100 Subject: Assign fields of the structure --- tr8as.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tr8as.c') diff --git a/tr8as.c b/tr8as.c index 6d43bdc..9cdb11a 100644 --- a/tr8as.c +++ b/tr8as.c @@ -421,7 +421,8 @@ static uint8_t new_ref(As *as, char *word, uint16_t mask, uint16_t addr) strcpy(as->refs[as->rcnt].label, pt); as->refs[as->rcnt].mod = mod; as->refs[as->rcnt].mask = mask; - as->refs[as->rcnt].loc = as->loc; + as->refs[as->rcnt].loc.filename = as->loc.filename; + as->refs[as->rcnt].loc.line = as->loc.line; as->refs[as->rcnt++].addr = addr; if (as->rcnt == MAX_REFS) -- cgit v1.2.3