From 4dbeb2ed6c5ddbf582c1881e4338528b6d503dbe Mon Sep 17 00:00:00 2001 From: Matei Date: Mon, 23 Jan 2006 10:35:24 +0000 Subject: [PATCH] Fixed a compile error (on gcc-3.3 at least): the code in adts.h used Traits.something where Traits is a typename instead of using tr.something where tr is an instance of Traits. This was SVN commit r3417. --- source/lib/adts.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/lib/adts.h b/source/lib/adts.h index ee5478e0af..77c648d335 100755 --- a/source/lib/adts.h +++ b/source/lib/adts.h @@ -40,7 +40,7 @@ public: // intended for pointer types -template > class DynHashTbl +template > class DynHashTbl { T* tbl; u16 num_entries; @@ -101,7 +101,7 @@ public: { tbl = 0; num_entries = 0; - max_entries = Traits.initial_entries/2; // will be doubled in expand_tbl + max_entries = tr.initial_entries/2; // will be doubled in expand_tbl debug_assert(is_pow2(max_entries)); expand_tbl(); } @@ -119,7 +119,7 @@ public: // rationale: must not set to 0 because expand_tbl only doubles the size. // don't keep the previous size because it may have become huge and // there is no provision for shrinking. - max_entries = Traits.initial_entries/2; // will be doubled in expand_tbl + max_entries = tr.initial_entries/2; // will be doubled in expand_tbl } void insert(const Key key, const T t)