aboutsummaryrefslogtreecommitdiffstats
path: root/src/repl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/repl.cpp')
-rw-r--r--src/repl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/repl.cpp b/src/repl.cpp
index 7ef7ff3..4ea4d68 100644
--- a/src/repl.cpp
+++ b/src/repl.cpp
@@ -105,7 +105,7 @@ eval(CEnv& cenv, Cursor& cursor, istream& is, bool execute)
for (Parsed::const_iterator i = parsed.begin(); i != parsed.end(); ++i) {
const AST* l = resp_lift(cenv, lifted, *i);
if (l)
- lifted.push_back(const_cast<AST*>(l));
+ lifted.push_back(l);
}
if (cenv.args.find("-L") != cenv.args.end()) {
@@ -122,7 +122,7 @@ eval(CEnv& cenv, Cursor& cursor, istream& is, bool execute)
val = resp_compile(cenv, call);
} else {
assert(*i);
- ATuple* tup = (*i)->to_tuple();
+ const ATuple* tup = (*i)->to_tuple();
if (!tup || (tup->tup_len() > 0))
exprs.push_back(*i);
}
@@ -135,7 +135,7 @@ eval(CEnv& cenv, Cursor& cursor, istream& is, bool execute)
f = cenv.engine()->startFunction(cenv, "main", new ATuple(cursor), fnT);
// Compile expressions (other than function definitions) into it
- for (list<AST*>::const_iterator i = exprs.begin(); i != exprs.end(); ++i)
+ for (Code::const_iterator i = exprs.begin(); i != exprs.end(); ++i)
val = resp_compile(cenv, *i);
// Finish compilation