diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-03-12 22:03:58 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-03-12 22:03:58 -0700 |
commit | 03e6fc5649ab4548fc331a0fe8bb5ed93eb296db (patch) | |
tree | 5da279b8fed550416afefe04f89bdd6e3aeff952 /lib.c | |
parent | 5bf88f48fe8233955b3346ccea14f8e3fae38286 (diff) | |
download | txr-03e6fc5649ab4548fc331a0fe8bb5ed93eb296db.tar.gz txr-03e6fc5649ab4548fc331a0fe8bb5ed93eb296db.tar.bz2 txr-03e6fc5649ab4548fc331a0fe8bb5ed93eb296db.zip |
* lib.c (iffi): Bugfix: was still using incorrect, outdated optional
argument defaulting logic.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -3871,8 +3871,7 @@ val iff(val condfun, val thenfun, val elsefun) val iffi(val condfun, val thenfun, val elsefun) { - if (!elsefun) - elsefun = identity_f; + elsefun = default_arg(elsefun, identity_f); return func_f0v(cons(condfun, cons(thenfun, elsefun)), do_iff); } |