aboutsummaryrefslogtreecommitdiffstats
path: root/src/repl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/repl.cpp')
-rw-r--r--src/repl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repl.cpp b/src/repl.cpp
index 216bbb2..83324f2 100644
--- a/src/repl.cpp
+++ b/src/repl.cpp
@@ -151,7 +151,7 @@ eval(CEnv& cenv, Cursor& cursor, istream& is, bool execute)
CVal val = NULL;
for (Code::const_iterator i = exprs.begin(); i != exprs.end(); ++i)
val = resp_compile(cenv, *i);
- cenv.engine()->finishFn(cenv, f, val, type);
+ cenv.engine()->finishFn(cenv, val, type);
// Call main and print result
if (cenv.args.find("-S") == cenv.args.end())
@@ -196,7 +196,7 @@ repl(CEnv& cenv)
try {
// Create function for this repl loop
f = cenv.engine()->startFn(cenv, replFnName, new ATuple(cursor), fnT);
- cenv.engine()->finishFn(cenv, f, resp_compile(cenv, ast), type);
+ cenv.engine()->finishFn(cenv, resp_compile(cenv, ast), type);
callPrintCollect(cenv, f, ast, type, true);
if (cenv.args.find("-d") != cenv.args.end())
cenv.engine()->writeModule(cenv, cenv.out);