diff options
Diffstat (limited to 'src/fns.c')
-rw-r--r-- | src/fns.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fns.c b/src/fns.c index 9d681017c14..b368ffd58f2 100644 --- a/src/fns.c +++ b/src/fns.c @@ -1418,7 +1418,7 @@ DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0, num = XFIXNUM (n); /* Speed up small lists by omitting circularity and quit checking. */ - if (num < 128) + if (num <= SMALL_LIST_LEN_MAX) { for (; 0 < num; num--, tail = XCDR (tail)) if (! CONSP (tail)) @@ -1503,9 +1503,8 @@ N counts from zero. If LIST is not that long, nil is returned. */) DEFUN ("elt", Felt, Selt, 2, 2, 0, doc: /* Return element of SEQUENCE at index N. */) - (register Lisp_Object sequence, Lisp_Object n) + (Lisp_Object sequence, Lisp_Object n) { - CHECK_FIXNUM (n); if (CONSP (sequence) || NILP (sequence)) return Fcar (Fnthcdr (n, sequence)); |