diff --git a/include/wx/hashmap.h b/include/wx/hashmap.h index 97e0456013..b2aa1bff1a 100644 --- a/include/wx/hashmap.h +++ b/include/wx/hashmap.h @@ -344,8 +344,8 @@ protected: \ { \ if( m_equals( m_getKey( (*node)->m_value ), key ) ) \ return node; \ - /* Tell the compiler to not do any strict-aliasing assumptions with the void cast */ \ - node = (Node**)(void*)&(*node)->m_nxt; \ + /* Tell the compiler to not do any strict-aliasing assumptions with a void cast? Can we make such a runtime guarantee? */ \ + node = (Node**)&(*node)->m_nxt; \ } \ \ return NULL; \