diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-01-27 18:57:15 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-01-27 18:57:15 -0800 |
commit | 293eeef3fca41458568340d20fdbdf4262036332 (patch) | |
tree | 1ebc783864ceb7a6a4337393e8f9a351ae544b6d | |
parent | e9b78ff2c7a7765b842588c9a93f84956de9834d (diff) | |
download | txr-293eeef3fca41458568340d20fdbdf4262036332.tar.gz txr-293eeef3fca41458568340d20fdbdf4262036332.tar.bz2 txr-293eeef3fca41458568340d20fdbdf4262036332.zip |
* 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.
-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))) |