summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-11-17 16:05:29 -0800
committerKeith Packard <keithp@keithp.com>2016-11-17 22:18:39 -0800
commit238da83903e6eec97534836680673112b44b112a (patch)
treefc90c4367146ab2fa25f812222f0a25ec116ade3
parent500dc096e326e25f186bea1ff59f027a63974237 (diff)
altos/lisp: Fix error atom name in ao_lisp_length
Cut&paste error. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/lisp/ao_lisp_builtin.c4
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))));
}