summary refs log tree commit diff
path: root/parse.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-02-14 13:23:28 -0800
committerQuentin Carbonneaux <quentin@c9x.me>2019-03-14 10:12:55 +0100
commitf622efa05a3fbd4938d1fb09e692ae0785770bc1 (patch)
treedb5fafeb08735aa6ac3127597b61a6b149982b55 /parse.c
parentb777cd6c4becf0d834f8fa549315fa11918a53be (diff)
downloadroux-f622efa05a3fbd4938d1fb09e692ae0785770bc1.tar.gz
Rearrange the fields in Ins so the bit-fields get packed together
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/parse.c b/parse.c
index fd3f609..c6f16ea 100644
--- a/parse.c
+++ b/parse.c
@@ -462,19 +462,19 @@ parserefl(int arg)
 			err("invalid function parameter");
 		if (k == 4)
 			if (arg)
-				*curi = (Ins){Oargc, R, {TYPE(ty), r}, Kl};
+				*curi = (Ins){Oargc, Kl, R, {TYPE(ty), r}};
 			else
-				*curi = (Ins){Oparc, r, {TYPE(ty)}, Kl};
+				*curi = (Ins){Oparc, Kl, r, {TYPE(ty)}};
 		else if (env)
 			if (arg)
-				*curi = (Ins){Oarge, R, {r}, k};
+				*curi = (Ins){Oarge, k, R, {r}};
 			else
-				*curi = (Ins){Opare, r, {R}, k};
+				*curi = (Ins){Opare, k, r, {R}};
 		else
 			if (arg)
-				*curi = (Ins){Oarg, R, {r}, k};
+				*curi = (Ins){Oarg, k, R, {r}};
 			else
-				*curi = (Ins){Opar, r, {R}, k};
+				*curi = (Ins){Opar, k, r, {R}};
 		curi++;
 		hasenv |= env;
 		if (peek() == Trparen)