git: 9front

Download patch

ref: 7928008e05f3de8c954866e8cf0445e240903505
parent: b5d0d92c50b9de1d043e11500cec11afe2941184
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Apr 1 16:23:46 EDT 2024

6c: fix botched  "embedded struct conversion codegen"-fix

Commit e38b748d43560b0f8bd5e02e1e8ca6c43fd21777
typoed the node name ("nod1" vs "nod") when bringing
back the nod offset for struct offset in ODOT.

--- a/sys/src/cmd/6c/cgen.c
+++ b/sys/src/cmd/6c/cgen.c
@@ -1024,8 +1024,8 @@
 			diag(n, "DOT and no offset");
 			break;
 		}
-		nod1.xoffset += (long)r->vconst;
-		nod1.type = n->type;
+		nod.xoffset += (long)r->vconst;
+		nod.type = n->type;
 		cgen(&nod, nn);
 		break;
 
--