summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-12-18 06:43:33 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-12-18 06:43:33 -0800
commita574f6c3f0d30b59cd0a0778e4e83e9cb0b4c724 (patch)
treebde9dd375b1b6cd4f54eea5847908ffa2448ea25
parenta3dc4fed39bd1ad6e961f5f767d7fbc18ecdd477 (diff)
downloadtxr-a574f6c3f0d30b59cd0a0778e4e83e9cb0b4c724.tar.gz
txr-a574f6c3f0d30b59cd0a0778e4e83e9cb0b4c724.tar.bz2
txr-a574f6c3f0d30b59cd0a0778e4e83e9cb0b4c724.zip
Fix useless use of if3.
* lisplib.c (lisplib_try_load): if3(a, b, nil) -> if2(a, b).
-rw-r--r--lisplib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisplib.c b/lisplib.c
index 065436bf..e06b62e6 100644
--- a/lisplib.c
+++ b/lisplib.c
@@ -304,8 +304,8 @@ val lisplib_try_load(val sym)
{
val fun = gethash(dl_table, sym);
debug_state_t ds;
- return if3(fun, (ds = debug_set_state(opt_dbg_autoload ? 0 : -1,
+ return if2(fun, (ds = debug_set_state(opt_dbg_autoload ? 0 : -1,
opt_dbg_autoload),
funcall(fun),
- debug_restore_state(ds), t), nil);
+ debug_restore_state(ds), t));
}