altos/lisp: Fix error atom name in ao_lisp_length
authorKeith Packard <keithp@keithp.com>
Fri, 18 Nov 2016 00:05:29 +0000 (16:05 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 20 Feb 2017 19:16:51 +0000 (11:16 -0800)
Cut&paste error.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lisp/ao_lisp_builtin.c

index b808cbc51aa992c3c9a4aa9e4419f3d7d5beca85..6cbcb92cb401624cb3f2653da3da0f1f7a763534 100644 (file)
@@ -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))));
 }