diff options
author | David Robillard <d@drobilla.net> | 2010-12-09 17:58:43 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-09 17:58:43 +0000 |
commit | acf13b1df559c6187d270ef7e31890201c191b12 (patch) | |
tree | 4a3d07f257efac1cd5ef51b21af2e55d4fd798b5 /src/resp.hpp | |
parent | d92de14f7d8354004edb14ed5658d5f434ce1e31 (diff) | |
download | resp-acf13b1df559c6187d270ef7e31890201c191b12.tar.gz resp-acf13b1df559c6187d270ef7e31890201c191b12.tar.bz2 resp-acf13b1df559c6187d270ef7e31890201c191b12.zip |
Add let form.
git-svn-id: http://svn.drobilla.net/resp/resp@328 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/resp.hpp')
-rw-r--r-- | src/resp.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resp.hpp b/src/resp.hpp index 1fbf3cf..d5ea459 100644 --- a/src/resp.hpp +++ b/src/resp.hpp @@ -829,7 +829,11 @@ struct CEnv { const ATuple* const fn; const std::string implName; int32_t index(const ASymbol* sym) { - const_iterator i = find(begin(), end(), sym); + const_iterator i = begin(); + for (; i != end(); ++i) + if ((*i)->sym() == sym->sym()) + break; + if (i != end()) { return i - begin() + 1; } else { |