Browse Source

Merge pull request #15 from wasamasa/fix-cons-representation

Fix Cons representation
mntmn 7 years ago
parent
commit
02eb7596d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sledge/writer.c

+ 1 - 1
sledge/writer.c

@@ -62,7 +62,7 @@ char* write_(Cell* cell, char* buffer, int in_list, int bufsize) {
       } else {
         write_((Cell*)cell->dr.next, tmpr, 0, TMP_BUF_SIZE);
         // improper list
-        snprintf(buffer, bufsize, "(%s.%s)", tmpl, tmpr);
+        snprintf(buffer, bufsize, "(%s . %s)", tmpl, tmpr);
       }
       free(tmpl);
       free(tmpr);