This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix min in fibheap template
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 16 Dec 2014 23:31:24 +0100
- Subject: Fix min in fibheap template
- Authentication-results: sourceware.org; auth=none
Hi,
using min function of fibheap template results in compile error on non-existent
data fields in fibheap node.
Fixed thus.
Bootstrapped/regtested x86_64-linux, comitted.
Honza
* fibonacci_heap.h (min): Return m_data instead of non-existing data.
Index: fibonacci_heap.h
===================================================================
--- fibonacci_heap.h (revision 218796)
+++ fibonacci_heap.h (working copy)
@@ -211,7 +211,7 @@ public:
if (m_min == NULL)
return NULL;
- return m_min->data;
+ return m_min->m_data;
}
/* Replace data associated with NODE and replace it with DATA. */