From fc2e1beec2578d76468d6ba096bae037f7701e23 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Sat, 25 Feb 2006 14:51:59 +0000 Subject: [PATCH] Revert the strict aliasing "fix". As per Michael Wetherell it isn't correct as we aren't able to make a runtime guarantee for the cast to be correct git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/hashmap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; \ -- 2.45.2