summaryrefslogtreecommitdiff
path: root/src/liblink/list9.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/liblink/list9.c')
-rw-r--r--src/liblink/list9.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/liblink/list9.c b/src/liblink/list9.c
index 3299d269a..9700a1684 100644
--- a/src/liblink/list9.c
+++ b/src/liblink/list9.c
@@ -345,7 +345,10 @@ Rconv(Fmt *fp)
int r;
r = va_arg(fp->args, int);
- sprint(str, "r%d", r);
+ if(r < NREG)
+ sprint(str, "r%d", r);
+ else
+ sprint(str, "f%d", r-NREG);
return fmtstrcpy(fp, str);
}