aboutsummaryrefslogtreecommitdiffstats
path: root/src/resp.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-09 17:58:43 +0000
committerDavid Robillard <d@drobilla.net>2010-12-09 17:58:43 +0000
commitacf13b1df559c6187d270ef7e31890201c191b12 (patch)
tree4a3d07f257efac1cd5ef51b21af2e55d4fd798b5 /src/resp.hpp
parentd92de14f7d8354004edb14ed5658d5f434ce1e31 (diff)
downloadresp-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.hpp6
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 {