summaryrefslogtreecommitdiff
path: root/src/lisp/ao_lisp_builtin.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-11-17 16:05:29 -0800
committerKeith Packard <keithp@keithp.com>2017-02-20 11:16:51 -0800
commit05ac336ea954c0f5eefabdefb0c8c5747be3fd32 (patch)
treedc3a45da29132635b396505c802deb82e49c651c /src/lisp/ao_lisp_builtin.c
parent2ce7ab37df07b3c1ea1ca9befc06477e3b6cdeac (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.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))));
}