X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f7a8c1299b05b34dcc400d597cc4a8cc0e85ac14..313feadc84cdf5501da71c41178c35bb7bed32eb:/src/msw/ole/automtn.cpp diff --git a/src/msw/ole/automtn.cpp b/src/msw/ole/automtn.cpp index 6b948f8baa..f80d6d8216 100644 --- a/src/msw/ole/automtn.cpp +++ b/src/msw/ole/automtn.cpp @@ -1049,7 +1049,8 @@ BOOL TmFromOleDate(DATE dtSrc, struct tm& tmDest) // Month number always >= n/32, so save some loop time */ for (tmDest.tm_mon = (n4Day >> 5) + 1; - n4Day > rgMonthDays[tmDest.tm_mon]; tmDest.tm_mon++); + n4Day > rgMonthDays[tmDest.tm_mon]; tmDest.tm_mon++) + ; tmDest.tm_mday = (int)(n4Day - rgMonthDays[tmDest.tm_mon-1]);