]> git.saurik.com Git - wxWidgets.git/commitdiff
Use long double instead of double in wxAnyValueBuffer, moved alignment-specific value...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 27 Sep 2009 16:30:26 +0000 (16:30 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 27 Sep 2009 16:30:26 +0000 (16:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/any.h

index 46d2ec61d9ef2fd13a60146ba456a8ecec6819d2..102f75926e1597afc070560e5b1d6027dfd604dd 100644 (file)
@@ -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];
 };