changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: 7a: fix post increment operands

changeset 7142: 1f9656482835
parent 7141: 4e09a9199097
child 7143: c99b5c3b4a28
author: cinap_lenrek@felloff.net
date: Mon, 08 Apr 2019 13:50:11 +0200
files: sys/src/cmd/7a/a.y
description: 7a: fix post increment operands
     1.1--- a/sys/src/cmd/7a/a.y
     1.2+++ b/sys/src/cmd/7a/a.y
     1.3@@ -542,8 +542,10 @@ ioreg:
     1.4 	}
     1.5 |	'(' sreg ')' con '!'
     1.6 	{
     1.7+		$$ = nullgen;
     1.8 		$$.type = D_XPOST;
     1.9-		$$.offset = $2;
    1.10+		$$.reg = $2;
    1.11+		$$.offset = $4;
    1.12 	}
    1.13 |	'(' sreg ')' '(' indexreg ')'
    1.14 	{