Code: Select all
size_t slot = (size_t)abs((int)(key % (long)m_hashSize));
Code: Select all
wxNodeBase *wxHashTableBase::GetNode(long key, long value) const
{
size_t slot = (size_t)abs((int)(key % (long)m_hashSize));
wxNodeBase *node;
if ( m_hashTable[slot] )
{
node = m_hashTable[slot]->Find(wxListKey(value));
}
else
{
node = (wxNodeBase *)NULL;
}
return node;
}
In tracing the code, it arrives here when executing the macro IMPLEMENT_APP(appName). The variable m_hashSize is initialized in the constructor for wxHashTableBase which doesn't appear to be executed.
The program compiles and links error free.
My environment is
Windows XP
wxWidgets 2.6.3
Borland C++Builder 6
I would greatly appreciate any suggestions.