]> www.ginac.de Git - cln.git/commitdiff
Fix compilation with clang.
authorRichard Kreckel <kreckel@ginac.de>
Wed, 2 Feb 2011 08:39:05 +0000 (09:39 +0100)
committerRichard Kreckel <kreckel@ginac.de>
Wed, 2 Feb 2011 08:39:05 +0000 (09:39 +0100)
This resolves some depending names that GCC generously accepts.

Thanks to Pawel Worach <pawel.worach@gmail.com>.

src/base/hash/cl_hash2.h
src/base/hash/cl_hashuniq.h

index 00eb866c8d68c2ab982c5d8e53f6c6f96b72ab59..66593ae6d6294463e258abb051bf4231b71fe7c0 100644 (file)
@@ -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
index 25fe4d27460473406667bad9f4424565887a6cad..b19b5dd732c146abe10a41a85b4479e22519eef0 100644 (file)
@@ -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