X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9838df2cefc5b368bb11f98c784ecc78f45ecaf7..db434467a143a2c847c4bcfe987f0202c2d02bf2:/src/common/serbase.cpp?ds=sidebyside diff --git a/src/common/serbase.cpp b/src/common/serbase.cpp index cf00ab21d5..cea2ce5efb 100644 --- a/src/common/serbase.cpp +++ b/src/common/serbase.cpp @@ -30,11 +30,10 @@ // wxObject_Serialize // ---------------------------------------------------------------------------- -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxObject_Serialize,wxObject) + IMPLEMENT_SERIAL_CLASS(wxList, wxObject) IMPLEMENT_SERIAL_CLASS(wxHashTable, wxObject) -#endif void WXSERIAL(wxList)::StoreObject(wxObjectOutputStream& s) { @@ -57,7 +56,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 {