summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 3846d885..bb0d580f 100644
--- a/lib.c
+++ b/lib.c
@@ -421,7 +421,7 @@ loc lastcons(val list)
val last(val list)
{
loc p = lastcons(list);
- return nullocp(p) ? deref(p) : list;
+ return nullocp(p) ? list : deref(p);
}
loc ltail(loc cons)