maq (0.7.1-5) gcc-4.7.patch

Summary

 stdhash.hh |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

    
download this patch

Patch contents

Author: Andreas Tille <tille@debian.org>
Date: Wed, 25 Apr 2012 14:20:16 +0200
Bug-Closed: http://bugs.debian.org/667270
Description: Build with g++ version 4.7
 Just followed the hint of g++ itself which said:
    note: use 'this->direct_insert_aux' instead

--- maq-0.7.1.orig/stdhash.hh
+++ maq-0.7.1/stdhash.hh
@@ -412,7 +412,7 @@
 	inline bool insert(const keytype_t &key) {
 		__lh3_hash_base_class<keytype_t>::rehash();
 		hashint_t i;
-		int ret = direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
+		int ret = this->direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
 		if (ret == 0) return true;
 		if (ret == 1) { ++(this->n_size); ++(this->n_occupied); }
 		else ++(this->n_size); // then ret == 2
@@ -493,7 +493,7 @@
 	inline bool insert(const keytype_t &key, const valtype_t &val) {
 		rehash();
 		hashint_t i;
-		int ret = direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
+		int ret = this->direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
 		vals[i] = val;
 		if (ret == 0) return true;
 		if (ret == 1) { ++(this->n_size); ++(this->n_occupied); }
@@ -503,7 +503,7 @@
 	inline bool insert(const keytype_t &key, valtype_t **q) {
 		rehash();
 		hashint_t i;
-		int ret = direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
+		int ret = this->direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
 		*q = vals + i;
 		if (ret == 0) return true;
 		if (ret == 1) { ++(this->n_size); ++(this->n_occupied); }