diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2015-01-27 Kaz Kylheku <kaz@kylheku.com> + * lib.c (make_like): Fix regression introduced in 102. + A one element list being converted to a string + treated as an empty list, leading to empty string. + +2015-01-27 Kaz Kylheku <kaz@kylheku.com> + * arith.c (width): New function. * arith.h (width): Declared. @@ -505,7 +505,7 @@ val make_like(val list, val thatobj) case LIT: case LSTR: if (!opt_compat || opt_compat > 101) { - if (!cdr(list)) + if (!list) return null_string; } if (is_chr(car(list))) |