X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bfe1edbddba7ab2ffc59d0d13252dfc03d609bd6..c9eee7f035ebc6b5c044475d508b018ae9fb5bc2:/include/wx/hashmap.h diff --git a/include/wx/hashmap.h b/include/wx/hashmap.h index ad8005c31c..ae3667ce41 100644 --- a/include/wx/hashmap.h +++ b/include/wx/hashmap.h @@ -337,8 +337,7 @@ protected: \ /* returns NULL if not found */ \ Node** GetNodePtr( const const_key_type& key ) const \ { \ - unsigned long hash = wx_static_cast(unsigned long, m_hasher( key )); \ - Node** node = &m_table[hash % m_tableBuckets]; \ + Node** node = &m_table[m_hasher( key ) % m_tableBuckets]; \ \ while( *node ) \ { \ @@ -354,8 +353,7 @@ protected: \ /* expressing it in terms of GetNodePtr is 5-8% slower :-( */ \ Node* GetNode( const const_key_type& key ) const \ { \ - unsigned long hash = wx_static_cast(unsigned long, m_hasher( key )); \ - Node* node = m_table[hash % m_tableBuckets]; \ + Node* node = m_table[m_hasher( key ) % m_tableBuckets]; \ \ while( node ) \ { \