diff options
author | Keith Packard <keithp@keithp.com> | 2017-12-01 11:32:27 +0100 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-12-01 11:32:27 +0100 |
commit | 5d0b85f25fa1e5cc816a8256afb38cf9552f6d9d (patch) | |
tree | d0ea124400ab543661e338406ed62566f237d4e0 /src/lisp | |
parent | 796017262cd433af5d143cc7168c944e1e05f4e2 (diff) |
altos/lisp: return from unmatched cond is #f, not nil
Fix the return value when we fall off the end of a cond expression to
be #f
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lisp')
-rw-r--r-- | src/lisp/ao_lisp_eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lisp/ao_lisp_eval.c b/src/lisp/ao_lisp_eval.c index 1044aa48..fa25edf0 100644 --- a/src/lisp/ao_lisp_eval.c +++ b/src/lisp/ao_lisp_eval.c @@ -350,7 +350,7 @@ ao_lisp_eval_cond(void) DBGI(".. frame "); DBG_POLY(ao_lisp_frame_poly(ao_lisp_frame_current)); DBG("\n"); DBGI(".. saved frame "); DBG_POLY(ao_lisp_stack->frame); DBG("\n"); if (!ao_lisp_stack->sexprs) { - ao_lisp_v = AO_LISP_NIL; + ao_lisp_v = _ao_lisp_bool_false; ao_lisp_stack->state = eval_val; } else { ao_lisp_v = ao_lisp_poly_cons(ao_lisp_stack->sexprs)->car; |