16 lines
598 B
Plaintext
16 lines
598 B
Plaintext
$NetBSD: patch-ae,v 1.2 2011/08/05 18:21:13 wiz Exp $
|
|
|
|
Try to fix stricter GCC 3.4 template handling.
|
|
|
|
--- libvideogfx/containers/heap.icc.orig 2006-01-15 20:22:18.000000000 +0000
|
|
+++ libvideogfx/containers/heap.icc
|
|
@@ -35,7 +35,7 @@ template <class T> void Heap<T>::Insert(
|
|
|
|
if (d_entries==d_size)
|
|
{
|
|
- int newsize = max(max(d_size*2,d_size+10),INITIAL_HEAP_SIZE);
|
|
+ int newsize = this->max(this->max(d_size*2,d_size+10),INITIAL_HEAP_SIZE);
|
|
assert(newsize>d_size);
|
|
|
|
T* newheap = new T[newsize+1]; // Create array for new heap including an extra dummy element [0].
|