X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56d739aad7b3e37018c05df91b005fa4edc326ef..3bf93e1e9ac6b61e5220967d2ada2d4faec4dd9c:/src/msw/dde.cpp?ds=sidebyside diff --git a/src/msw/dde.cpp b/src/msw/dde.cpp index d19c645889..475b580110 100644 --- a/src/msw/dde.cpp +++ b/src/msw/dde.cpp @@ -39,12 +39,12 @@ #include "wx/dde.h" #include "wx/intl.h" #include "wx/hashmap.h" +#include "wx/math.h" #include "wx/msw/private.h" #include #include -#include // ---------------------------------------------------------------------------- // macros and constants @@ -595,7 +595,7 @@ wxChar *wxDDEConnection::Request(const wxString& item, int *size, wxIPCFormat fo } DWORD len = DdeGetData(returned_data, NULL, 0, 0); - len = ceil( double(len)/sizeof(wxChar) ); + len = (DWORD)ceil( double(len)/sizeof(wxChar) ); wxChar *data = GetBufferAtLeast( len ); wxASSERT_MSG(data != NULL, @@ -777,7 +777,7 @@ _DDECallback(WORD wType, if (connection) { DWORD len = DdeGetData(hData, NULL, 0, 0); - len = ceil( double(len)/sizeof(wxChar) ); + len = (DWORD)ceil( double(len)/sizeof(wxChar) ); wxChar *data = connection->GetBufferAtLeast( len ); wxASSERT_MSG(data != NULL, @@ -839,7 +839,7 @@ _DDECallback(WORD wType, wxString item_name = DDEStringFromAtom(hsz2); DWORD len = DdeGetData(hData, NULL, 0, 0); - len = ceil( double(len) / sizeof(wxChar) ); + len = (DWORD)ceil( double(len) / sizeof(wxChar) ); wxChar *data = connection->GetBufferAtLeast( len ); wxASSERT_MSG(data != NULL, @@ -927,7 +927,7 @@ _DDECallback(WORD wType, wxString item_name = DDEStringFromAtom(hsz2); DWORD len = DdeGetData(hData, NULL, 0, 0); - len = ceil( double(len) / sizeof(wxChar) ); + len = (DWORD)ceil( double(len) / sizeof(wxChar) ); wxChar *data = connection->GetBufferAtLeast( len ); wxASSERT_MSG(data != NULL,