wxNodeBase *wxHashTableBase::GetNode(long key, long value) const
{
- size_t slot = (size_t)abs(key % m_hashSize);
+ size_t slot = (size_t)abs(key % (long)m_hashSize);
wxNodeBase *node;
if ( m_hashTable[slot] )
{
wxCHECK_RET( m_hashSize, _T("must call Create() first") );
- size_t slot = (size_t)abs(key % m_hashSize);
+ size_t slot = (size_t)abs(key % (long)m_hashSize);
if ( !m_keys[slot] )
{
{
wxCHECK_MSG( m_hashSize, wxNOT_FOUND, _T("must call Create() first") );
- size_t slot = (size_t)abs(key % m_hashSize);
+ size_t slot = (size_t)abs(key % (long)m_hashSize);
wxArrayLong *keys = m_keys[slot];
if ( keys )
{
wxCHECK_MSG( m_hashSize, wxNOT_FOUND, _T("must call Create() first") );
- size_t slot = (size_t)abs(key % m_hashSize);
+ size_t slot = (size_t)abs(key % (long)m_hashSize);
wxArrayLong *keys = m_keys[slot];
if ( keys )