altos/lisp: Check only cdr base type when moving cons cells
authorKeith Packard <keithp@keithp.com>
Mon, 4 Dec 2017 03:49:20 +0000 (19:49 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 4 Dec 2017 03:49:20 +0000 (19:49 -0800)
commit32ab76c3049b913283caafbaef873754d76dc9d4
tree427cdc7b1bb66891bcc5514af4a7ba0ca189a4c1
parented6967cef5d82baacafe1c23229f44d58c838326
altos/lisp: Check only cdr base type when moving cons cells

The cdr may have moved, so we can't look at the target object
type. Fortunately, the base type encoded in the reference itself is
sufficient to check for a non-cons cdr.

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