X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f5db5af932c3255815542f4151b02367ea73c208..6603071a994f30ad21f1f4e19f03397c360bfafa:/include/wx/hashmap.h?ds=sidebyside diff --git a/include/wx/hashmap.h b/include/wx/hashmap.h index b8689b86f6..b1d2f06314 100644 --- a/include/wx/hashmap.h +++ b/include/wx/hashmap.h @@ -341,7 +341,7 @@ protected: \ /* returns NULL if not found */ \ Node** GetNodePtr( const const_key_type& key ) const \ { \ - unsigned long hash = m_hasher( key ); \ + unsigned long hash = wx_static_cast(unsigned long, m_hasher( key )); \ Node** node = &m_table[hash % m_tableBuckets]; \ \ while( *node ) \ @@ -358,7 +358,7 @@ protected: \ /* expressing it in terms of GetNodePtr is 5-8% slower :-( */ \ Node* GetNode( const const_key_type& key ) const \ { \ - unsigned long hash = m_hasher( key ); \ + unsigned long hash = wx_static_cast(unsigned long, m_hasher( key )); \ Node* node = m_table[hash % m_tableBuckets]; \ \ while( node ) \