avoid GCC warning about type-punned pointer breaking strict aliasing rules

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2008-01-14 18:15:28 +00:00
parent 0edfe8f7e3
commit 872051d89b
2 changed files with 39 additions and 42 deletions

View File

@@ -103,7 +103,7 @@ void _wxHashTableBase2::DeleteNodes( size_t buckets,
while( node )
{
tmp = node->m_nxt;
tmp = node->m_next;
dtor( node );
node = tmp;
}
@@ -126,9 +126,9 @@ void _wxHashTableBase2::CopyHashTable( _wxHashTable_NodeBase** srcTable,
{
size_t bucket = func( dst, node );
nextnode = node->m_nxt;
nextnode = node->m_next;
_wxHashTable_NodeBase* newnode = proc( node );
newnode->m_nxt = dstTable[bucket];
newnode->m_next = dstTable[bucket];
dstTable[bucket] = newnode;
}
}