From f7da433f3a18e193c0853071a7763e765db66a47 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Wed, 2 Feb 2011 09:39:05 +0100 Subject: [PATCH] Fix compilation with clang. This resolves some depending names that GCC generously accepts. Thanks to Pawel Worach . --- src/base/hash/cl_hash2.h | 4 ++-- src/base/hash/cl_hashuniq.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/base/hash/cl_hash2.h b/src/base/hash/cl_hash2.h index 00eb866..66593ae 100644 --- a/src/base/hash/cl_hash2.h +++ b/src/base/hash/cl_hash2.h @@ -118,7 +118,7 @@ private: if (this->_freelist < -1) return; // Can we make room? - if (_garcol_fun(this)) + if (this->_garcol_fun(this)) if (this->_freelist < -1) return; // No! Have to grow the hash table. @@ -126,7 +126,7 @@ private: #else // workaround Sun C++ 4.1 inline function compiler bug if (this->_freelist >= -1) { - if (!_garcol_fun(this) || (this->_freelist >= -1)) + if (!this->_garcol_fun(this) || (this->_freelist >= -1)) grow(); } #endif diff --git a/src/base/hash/cl_hashuniq.h b/src/base/hash/cl_hashuniq.h index 25fe4d2..b19b5dd 100644 --- a/src/base/hash/cl_hashuniq.h +++ b/src/base/hash/cl_hashuniq.h @@ -115,7 +115,7 @@ private: if (this->_freelist < -1) return; // Can we make room? - if (_garcol_fun(this)) + if (this->_garcol_fun(this)) if (this->_freelist < -1) return; // No! Have to grow the hash table. @@ -123,7 +123,7 @@ private: #else // workaround Sun C++ 4.1 inline function compiler bug if (this->_freelist >= -1) { - if (!_garcol_fun(this) || (this->_freelist >= -1)) + if (!this->_garcol_fun(this) || (this->_freelist >= -1)) grow(); } #endif