aboutsummaryrefslogtreecommitdiffstats
path: root/src/compile.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-04-13 23:26:56 +0000
committerDavid Robillard <d@drobilla.net>2010-04-13 23:26:56 +0000
commit7bec36818542d53a52fb285757b1c5947b77b443 (patch)
treea494f1e2bdadab6d8f60c82f80b2d9d95193dae9 /src/compile.cpp
parentd868d225ea641d81b43e7c574343cd45a1e13700 (diff)
downloadresp-7bec36818542d53a52fb285757b1c5947b77b443.tar.gz
resp-7bec36818542d53a52fb285757b1c5947b77b443.tar.bz2
resp-7bec36818542d53a52fb285757b1c5947b77b443.zip
Better (but still not correct...) computation of lifted function implementation type.
git-svn-id: http://svn.drobilla.net/resp/resp@258 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/compile.cpp')
-rw-r--r--src/compile.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/compile.cpp b/src/compile.cpp
index ee92dbd..70056db 100644
--- a/src/compile.cpp
+++ b/src/compile.cpp
@@ -34,10 +34,11 @@ COMPILE_LITERAL(bool);
CVal
ASymbol::compile(CEnv& cenv) throw()
{
- if (cenv.vals.topLevel(this) && cenv.type(this)->head()->str() != "Fn")
- return cenv.engine()->getGlobal(cenv, *cenv.vals.ref(this));
- else
+ if (cenv.vals.topLevel(this) && cenv.type(this)->head()->str() != "Fn") {
+ return cenv.engine()->getGlobal(cenv, cppstr, *cenv.vals.ref(this));
+ } else {
return *cenv.vals.ref(this);
+ }
}
CVal