From 7c6c0acf9d87b2640c1b9499d04ce36057f78b26 Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Thu, 1 Dec 2005 14:30:30 +0000 Subject: [PATCH] Silence warning from bcc git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/hashmap.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/wx/hashmap.h b/include/wx/hashmap.h index 0a20a103ea..31280b1f5b 100644 --- a/include/wx/hashmap.h +++ b/include/wx/hashmap.h @@ -337,7 +337,8 @@ protected: \ /* returns NULL if not found */ \ Node** GetNodePtr( const const_key_type& key ) const \ { \ - Node** node = &m_table[m_hasher( key ) % m_tableBuckets]; \ + size_t bucket = m_hasher( key ) % m_tableBuckets; \ + Node** node = &m_table[bucket]; \ \ while( *node ) \ { \ @@ -353,7 +354,8 @@ protected: \ /* expressing it in terms of GetNodePtr is 5-8% slower :-( */ \ Node* GetNode( const const_key_type& key ) const \ { \ - Node* node = m_table[m_hasher( key ) % m_tableBuckets]; \ + size_t bucket = m_hasher( key ) % m_tableBuckets; \ + Node* node = m_table[bucket]; \ \ while( node ) \ { \ -- 2.45.2