diff options
author | David Robillard <d@drobilla.net> | 2009-10-14 03:00:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-10-14 03:00:53 +0000 |
commit | 81df782cba422300b4034ccd5e48145c09cd0f69 (patch) | |
tree | a3500e2db2229ad734ceaff8d7eade85d3875920 /src | |
parent | 996faeb3c1fe8e43da77f47ead61179cfb83b5ce (diff) | |
download | resp-81df782cba422300b4034ccd5e48145c09cd0f69.tar.gz resp-81df782cba422300b4034ccd5e48145c09cd0f69.tar.bz2 resp-81df782cba422300b4034ccd5e48145c09cd0f69.zip |
Fix compilation (oops).
git-svn-id: http://svn.drobilla.net/resp/tuplr@221 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src')
-rw-r--r-- | src/constrain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constrain.cpp b/src/constrain.cpp index 8d44487..de07f77 100644 --- a/src/constrain.cpp +++ b/src/constrain.cpp @@ -128,7 +128,7 @@ ACall::constrain(TEnv& tenv, Constraints& c) const const AType* fnType = tenv.var(at(0)); if (fnType->kind != AType::VAR) { - if (fnType == AType::PRIM + if (fnType->kind == AType::PRIM || fnType->size() < 2 || !fnType->at(0)->to<const ASymbol*>() || fnType->at(0)->to<const ASymbol*>()->cppstr != "Fn") |