git: 9front

Download patch

ref: 298ea81629ccb1b416f0a947181c52877edfb54a
parent: 1830eb96d8dc50e119b975ebe50e63bfe4c974cf
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Apr 8 09:50:11 EDT 2019

7a: fix post increment operands

--- a/sys/src/cmd/7a/a.y
+++ b/sys/src/cmd/7a/a.y
@@ -542,8 +542,10 @@
 	}
 |	'(' sreg ')' con '!'
 	{
+		$$ = nullgen;
 		$$.type = D_XPOST;
-		$$.offset = $2;
+		$$.reg = $2;
+		$$.offset = $4;
 	}
 |	'(' sreg ')' '(' indexreg ')'
 	{
--