From: Jaakko Salli Date: Sun, 27 Sep 2009 16:30:26 +0000 (+0000) Subject: Use long double instead of double in wxAnyValueBuffer, moved alignment-specific value... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ca5a36146e952e42f2152e6f456b799eb958df5f Use long double instead of double in wxAnyValueBuffer, moved alignment-specific values into sub-union git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/any.h b/include/wx/any.h index 46d2ec61d9..102f75926e 100644 --- a/include/wx/any.h +++ b/include/wx/any.h @@ -29,13 +29,17 @@ enum union wxAnyValueBuffer { + union Alignment + { + #if wxHAS_INT64 + wxInt64 m_int64; + #endif + long double m_longDouble; + void ( *m_funcPtr )(void); + void ( wxAnyValueBuffer::*m_mFuncPtr )(void); + } m_alignment; + void* m_ptr; -#if wxHAS_INT64 - wxInt64 m_int64; -#endif - double m_double; - void ( *m_funcPtr )(void); - void ( wxAnyValueBuffer::*m_mFuncPtr )(void); wxByte m_buffer[WX_ANY_VALUE_BUFFER_SIZE]; };