code: plan9front

Download patch

ref: 578af37678b2ea16e29d950cbc352823cd2491ab
parent: 1b51d5683a5d8adcde03bbd277e6331f23c2f723
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 ee93b99842546dc501a383e06fd0ba4af904e150
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;