diff options
author | David Robillard <d@drobilla.net> | 2010-08-20 01:58:26 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-08-20 01:58:26 +0000 |
commit | 4861eb2317df37c83415debf65480249002f4180 (patch) | |
tree | 31da803fc9ec29f657587a7539636fda6307a567 /src/depoly.cpp | |
parent | 594370a2a381545aea8d0631a86f422f84ee2792 (diff) | |
download | resp-4861eb2317df37c83415debf65480249002f4180.tar.gz resp-4861eb2317df37c83415debf65480249002f4180.tar.bz2 resp-4861eb2317df37c83415debf65480249002f4180.zip |
Make AST::compile const and make Module compilation API take const AST*.
git-svn-id: http://svn.drobilla.net/resp/resp@265 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/depoly.cpp')
-rw-r--r-- | src/depoly.cpp | 4 |
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; |