summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-12 09:55:59 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-12 09:55:59 -0400
commitd837263ffa57844b89f4bb615c280938a971ba99 (patch)
tree0d0e3c43c7e59fc00d36df8c08d07b8f1bf07ecd
parent8bb7d57b4ef4d0c0f04dbeb67eb1e3f55d407c0d (diff)
downloadroux-d837263ffa57844b89f4bb615c280938a971ba99.tar.gz
oops, wrong test in abi classify()
-rw-r--r--sysv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysv.c b/sysv.c
index 34f2904..25d9859 100644
--- a/sysv.c
+++ b/sysv.c
@@ -177,7 +177,7 @@ classify(Ins *i0, Ins *i1, AClass *ac, int op, AClass *aret)
 			if (a->inmem)
 				continue;
 			ni = ns = 0;
-			for (n=0; n<2; n++)
+			for (n=0; (uint)n*8<a->size; n++)
 				if (KBASE(a->cls[n]) == 0)
 					ni++;
 				else