maq-0.7.1-gcc-4.7.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. stdhash.hh | 6 +++---
  2. 1 files changed, 3 insertions(+), 3 deletions(-)
  3. diff --git a/stdhash.hh b/stdhash.hh
  4. index eaf98af..16cd1a3 100644
  5. --- a/stdhash.hh
  6. +++ b/stdhash.hh
  7. @@ -412,7 +412,7 @@ public:
  8. inline bool insert(const keytype_t &key) {
  9. __lh3_hash_base_class<keytype_t>::rehash();
  10. hashint_t i;
  11. - int ret = direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
  12. + int ret = this->direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
  13. if (ret == 0) return true;
  14. if (ret == 1) { ++(this->n_size); ++(this->n_occupied); }
  15. else ++(this->n_size); // then ret == 2
  16. @@ -493,7 +493,7 @@ public:
  17. inline bool insert(const keytype_t &key, const valtype_t &val) {
  18. rehash();
  19. hashint_t i;
  20. - int ret = direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
  21. + int ret = this->direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
  22. vals[i] = val;
  23. if (ret == 0) return true;
  24. if (ret == 1) { ++(this->n_size); ++(this->n_occupied); }
  25. @@ -503,7 +503,7 @@ public:
  26. inline bool insert(const keytype_t &key, valtype_t **q) {
  27. rehash();
  28. hashint_t i;
  29. - int ret = direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
  30. + int ret = this->direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
  31. *q = vals + i;
  32. if (ret == 0) return true;
  33. if (ret == 1) { ++(this->n_size); ++(this->n_occupied); }