aboutsummaryrefslogtreecommitdiffstats
path: root/src/depoly.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/depoly.cpp')
-rw-r--r--src/depoly.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/depoly.cpp b/src/depoly.cpp
index 9b457c2..cd9c5e8 100644
--- a/src/depoly.cpp
+++ b/src/depoly.cpp
@@ -45,8 +45,8 @@ template<typename T>
AST*
depoly_call(CEnv& cenv, T* call, Code& code) throw()
{
- AST* head = cenv.resolve(call->head());
- AFn* callee = head->to<AFn*>();
+ const AST* head = cenv.resolve(call->head());
+ const AFn* callee = head->to<const AFn*>();
if (!callee || cenv.type(callee)->concrete())
return call;