summary refs log tree commit diff
path: root/lisc/isel.c
diff options
context:
space:
mode:
Diffstat (limited to 'lisc/isel.c')
-rw-r--r--lisc/isel.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisc/isel.c b/lisc/isel.c
index f6d877c..e853f7b 100644
--- a/lisc/isel.c
+++ b/lisc/isel.c
@@ -395,10 +395,14 @@ aclass(AClass *a, Typ *t)
 	for (e=0, s=0; e<2; e++) {
 		cls = -1;
 		for (n=0; n<8 && t->seg[s].len; s++) {
-			if (t->seg[s].flt) {
+			if (t->seg[s].ispad) {
+				/* don't change anything */
+			}
+			else if (t->seg[s].isflt) {
 				if (cls == -1)
 					cls = Kd;
-			} else
+			}
+			else
 				cls = Kl;
 			n += t->seg[s].len;
 		}