summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lisc/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisc/parse.c b/lisc/parse.c
index feb11a0..b5adca3 100644
--- a/lisc/parse.c
+++ b/lisc/parse.c
@@ -797,7 +797,7 @@ parse(FILE *f, void data(Dat *), void func(Fn *))
 static void
 printref(Ref r, Fn *fn, FILE *f)
 {
-	switch (r.type) {
+	switch (rtype(r)) {
 	case RTmp:
 		if (r.val < Tmp0)
 			fprintf(f, "R%d", r.val);