From 04110679988c79548505b1f02c0d7173cd8081ee Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Sun, 27 Sep 2009 14:52:34 +0000 Subject: [PATCH] Make sure there are no memory alignment issues with wxAnyValueBuffer git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/any.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/wx/any.h b/include/wx/any.h index 13e5d10803..c021ce65c7 100644 --- a/include/wx/any.h +++ b/include/wx/any.h @@ -30,6 +30,10 @@ enum union wxAnyValueBuffer { void* m_ptr; +#if wxHAS_INT64 + wxInt64 m_int64; +#endif + double m_double; wxByte m_buffer[WX_ANY_VALUE_BUFFER_SIZE]; }; @@ -774,8 +778,8 @@ private: } // Data - wxAnyValueType* m_type; wxAnyValueBuffer m_buffer; + wxAnyValueType* m_type; }; -- 2.45.2