X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd83cb56d29385e2a87840eeb3876b976a5afc43..36195a44c32bcd2b14cd819ed675bc80fb2255bd:/include/wx/hash.h 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] ) \ { \