]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/hashmap.h
wxDataViewCtrl WIP.
[wxWidgets.git] / include / wx / hashmap.h
index 8e8cffcc56047c80cba358348f4f515ee71a04dc..97e0456013db30ba3bb5cabf4e22f8780a68dbfc 100644 (file)
@@ -344,10 +344,11 @@ protected: \
         { \
             if( m_equals( m_getKey( (*node)->m_value ), key ) ) \
                 return node; \
-            node = (Node**)&(*node)->m_nxt; \
+            /* Tell the compiler to not do any strict-aliasing assumptions with the void cast */ \
+            node = (Node**)(void*)&(*node)->m_nxt; \
         } \
  \
-        return 0; \
+        return NULL; \
     } \
  \
     /* returns NULL if not found */ \