]> git.saurik.com Git - wxWidgets.git/commitdiff
Make sure there are no memory alignment issues with wxAnyValueBuffer
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 27 Sep 2009 14:52:34 +0000 (14:52 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 27 Sep 2009 14:52:34 +0000 (14:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/any.h

index 13e5d1080326c66ce4250f32ae7855e7f4b9a5ad..c021ce65c7fcc3688d7ecdfdf7c9377d4030fa96 100644 (file)
@@ -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;
 };