summaryrefslogtreecommitdiff
path: root/pmt
diff options
context:
space:
mode:
Diffstat (limited to 'pmt')
-rw-r--r--pmt/src/lib/pmt.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pmt/src/lib/pmt.cc b/pmt/src/lib/pmt.cc
index f233a1398..e854e2756 100644
--- a/pmt/src/lib/pmt.cc
+++ b/pmt/src/lib/pmt.cc
@@ -864,7 +864,7 @@ pmt_nth(size_t n, pmt_t list)
pmt_t
pmt_nthcdr(size_t n, pmt_t list)
{
- if (!(pmt_is_null(list) || pmt_is_pair(list)))
+ if (!(pmt_is_pair(list) || pmt_is_null(list)))
throw pmt_wrong_type("pmt_nthcdr", list);
while (n > 0){