diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-02-11 16:26:57 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-02-11 16:26:57 -0800 |
commit | 28c0b2296f8e7e268400911d8fa6bb07a5bc76b3 (patch) | |
tree | 44f5ed255f438595ebe981412416dd2135601697 | |
parent | 5bc1cc4489663efb96f51b941d3b2313d82f7eef (diff) | |
download | txr-28c0b2296f8e7e268400911d8fa6bb07a5bc76b3.tar.gz txr-28c0b2296f8e7e268400911d8fa6bb07a5bc76b3.tar.bz2 txr-28c0b2296f8e7e268400911d8fa6bb07a5bc76b3.zip |
* eval.c (if_fun): Bugfix: forgotten handling of optional
alternative argument.
-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) |