diff options
author | Keith Packard <keithp@keithp.com> | 2016-11-17 16:05:29 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-02-20 11:16:51 -0800 |
commit | 05ac336ea954c0f5eefabdefb0c8c5747be3fd32 (patch) | |
tree | dc3a45da29132635b396505c802deb82e49c651c /src/lisp/ao_lisp_builtin.c | |
parent | 2ce7ab37df07b3c1ea1ca9befc06477e3b6cdeac (diff) |
altos/lisp: Fix error atom name in ao_lisp_length
Cut&paste error.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lisp/ao_lisp_builtin.c')
-rw-r--r-- | src/lisp/ao_lisp_builtin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lisp/ao_lisp_builtin.c b/src/lisp/ao_lisp_builtin.c index b808cbc5..6cbcb92c 100644 --- a/src/lisp/ao_lisp_builtin.c +++ b/src/lisp/ao_lisp_builtin.c @@ -213,9 +213,9 @@ ao_lisp_last(struct ao_lisp_cons *cons) ao_poly ao_lisp_length(struct ao_lisp_cons *cons) { - if (!ao_lisp_check_argc(_ao_lisp_atom_last, cons, 1, 1)) + if (!ao_lisp_check_argc(_ao_lisp_atom_length, cons, 1, 1)) return AO_LISP_NIL; - if (!ao_lisp_check_argt(_ao_lisp_atom_last, cons, 0, AO_LISP_CONS, 1)) + if (!ao_lisp_check_argt(_ao_lisp_atom_length, cons, 0, AO_LISP_CONS, 1)) return AO_LISP_NIL; return ao_lisp_int_poly(ao_lisp_cons_length(ao_lisp_poly_cons(ao_lisp_arg(cons, 0)))); } |