X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59ba321bca527af823ae1253d0544606e311dcf9..f35732e9549642d31e7bb300fb6ec26d50cc8749:/src/common/filename.cpp?ds=inline diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 2ddfd5738a..94799d1a96 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -237,8 +237,8 @@ static void ConvertWxToFileTime(FILETIME *ft, const wxDateTime& dt) { SYSTEMTIME st; st.wDay = dt.GetDay(); - st.wMonth = dt.GetMonth() + 1; - st.wYear = dt.GetYear(); + st.wMonth = (WORD)(dt.GetMonth() + 1); + st.wYear = (WORD)dt.GetYear(); st.wHour = dt.GetHour(); st.wMinute = dt.GetMinute(); st.wSecond = dt.GetSecond();