From: Vadim Zeitlin Date: Sat, 27 Jan 2001 12:40:57 +0000 (+0000) Subject: fix for DoPut() from long time ago X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6a5391afa9a22c72e1daaa8ee949febe78ad079d fix for DoPut() from long time ago git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/hash.h b/include/wx/hash.h index 79e8339577..575216d21c 100644 --- a/include/wx/hash.h +++ b/include/wx/hash.h @@ -274,7 +274,7 @@ private: protected: \ void DoPut(long key, long value, eltype *data) \ { \ - size_t slot = (size_t)abs(key % m_hashSize); \ + size_t slot = (size_t)abs((int)(key % (long)m_hashSize)); \ \ if ( !m_hashTable[slot] ) \ { \