]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/serbase.cpp
fixed false alert in wxRegKey::DeleteSelf
[wxWidgets.git] / src / common / serbase.cpp
index 5bc0943b9e6d0807b88d0c292d64d2a7e7edf56c..7ad3a46705251d2d9fd59e0c470d055fc2151ac2 100644 (file)
@@ -15,6 +15,9 @@
 
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
+#if defined(__WINDOWS__)
+#include "wx/msw/private.h"
+#endif
 
 #include "wx/serbase.h"
 #include "wx/datstrm.h"
@@ -56,7 +59,7 @@ void WXSERIAL(wxList)::StoreObject(wxObjectOutputStream& s)
 
   if (lst_object->GetKeyType() == wxKEY_INTEGER) {
     while (node) {
-      data_s.Write32(node->GetKeyInteger());
+      data_s.Write32((size_t)node->GetKeyInteger());
       node = node->Next();
     }
   } else {