From 6a5391afa9a22c72e1daaa8ee949febe78ad079d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 27 Jan 2001 12:40:57 +0000 Subject: [PATCH] fix for DoPut() from long time ago git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] ) \ { \ -- 2.45.2