X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/940ef730c0b05ccc13e3add8f2b96909917e857c..3bf93e1e9ac6b61e5220967d2ada2d4faec4dd9c:/src/msw/dde.cpp diff --git a/src/msw/dde.cpp b/src/msw/dde.cpp index ff11285096..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( static_cast(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( static_cast(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( static_cast(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( static_cast(len) / sizeof(wxChar) ); + len = (DWORD)ceil( double(len) / sizeof(wxChar) ); wxChar *data = connection->GetBufferAtLeast( len ); wxASSERT_MSG(data != NULL,