diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2014-02-11 Kaz Kylheku <kaz@kylheku.com> + * eval.c (if_fun): Bugfix: forgotten handling of optional + alternative argument. + +2014-02-11 Kaz Kylheku <kaz@kylheku.com> + * eval.c (subst_vars): Bugfix: results of expressions not treated in the same way as variables: lists not stringified, causing expansions with parentheses, and sometimes errors @@ -2226,7 +2226,7 @@ static void reg_var(val sym, val *loc) static val if_fun(val cond, val then, val alt) { - return if3(cond, then, alt); + return if3(cond, then, default_bool_arg(alt)); } static val or_fun(val vals) |