Fix regression in C code for PrintList()

Fixes #11
This commit is contained in:
Justine Tunney 2021-11-16 00:00:08 -08:00
parent 522f0a16fd
commit 532b92688e

2
lisp.c
View file

@ -241,7 +241,7 @@ void PrintList(int x) {
#endif #endif
PrintChar('('); PrintChar('(');
PrintObject(Car(x)); PrintObject(Car(x));
while ((x = Cdr(x))) { while ((x = Cdr(x)) != NIL) {
if (!ISATOM(x)) { if (!ISATOM(x)) {
PrintChar(' '); PrintChar(' ');
PrintObject(Car(x)); PrintObject(Car(x));