aboutsummaryrefslogtreecommitdiffstats
path: root/src/resp.hpp
diff options
context:
space:
mode:
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 {