diff options
author | David Robillard <d@drobilla.net> | 2010-04-13 23:26:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-04-13 23:26:56 +0000 |
commit | 7bec36818542d53a52fb285757b1c5947b77b443 (patch) | |
tree | a494f1e2bdadab6d8f60c82f80b2d9d95193dae9 /src/compile.cpp | |
parent | d868d225ea641d81b43e7c574343cd45a1e13700 (diff) | |
download | resp-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.cpp | 7 |
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 |