summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-09-01 23:41:52 -0700
committerKaz Kylheku <kaz@kylheku.com>2012-09-01 23:41:52 -0700
commit3f510f49a0e00d7b6b057e6cee6f4c2ac34d0f5f (patch)
treedc9ad19fd9457d0aa4af44984c0d65f40f2daffd /eval.c
parenta429075a537b72d6dea3a8c66fb0191f0ebbc32f (diff)
downloadtxr-3f510f49a0e00d7b6b057e6cee6f4c2ac34d0f5f.tar.gz
txr-3f510f49a0e00d7b6b057e6cee6f4c2ac34d0f5f.tar.bz2
txr-3f510f49a0e00d7b6b057e6cee6f4c2ac34d0f5f.zip
* eval.c (symbol_function): Bugfix: return the function rather than
the whole binding.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index ca7c51ec..60e0cebf 100644
--- a/eval.c
+++ b/eval.c
@@ -1849,7 +1849,7 @@ static val lazy_mappendv(val fun, val list_of_lists)
static val symbol_function(val sym)
{
- return lookup_fun(nil, sym);
+ return cdr(lookup_fun(nil, sym));
}
static val rangev_func(val env, val lcons)