Bug 576363 - Qualify accesses to dependent base in js. r=nnethercote.

--HG--
extra : convert_revision : 5c5cacef53d6a42f6226636c0fa71c13e428b52f
This commit is contained in:
Eli Friedman 2010-07-04 19:12:15 -07:00
parent c46ef62c01
commit c7b36cb9f6

View File

@ -1581,10 +1581,10 @@ namespace nanojit
CountMap(Allocator& alloc) : HashMap<Key, int>(alloc) {}
int add(Key k) {
int c = 1;
if (containsKey(k)) {
c = 1+get(k);
if (this->containsKey(k)) {
c = 1+this->get(k);
}
put(k,c);
this->put(k,c);
return c;
}
};