Explorar o código

Fix regression in C code for PrintList()

Fixes #11
Justine Tunney %!s(int64=3) %!d(string=hai) anos
pai
achega
532b92688e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp.c

+ 1 - 1
lisp.c

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