summaryrefslogtreecommitdiff
path: root/graphics/libvideogfx/patches/patch-ae
blob: f77ec266a14ae50ade3b84ed601ad8f780bf0bcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ae,v 1.1 2006/01/15 20:34:13 joerg Exp $

--- 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].