]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/hash.h
argh... yet another compilation fix
[wxWidgets.git] / include / wx / hash.h
index 79e8339577ce7f066dfdfe1322cd3551a8ae1f7a..575216d21cc8245fbaec6158cb18b9fc9c2bcad1 100644 (file)
@@ -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] )                                          \
             {                                                                  \