X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68988224809ee7bd6c3c517e7ac5a3ab6c2b4ab9..b2247ee93bd093d52417ea063720f4165d8a0da8:/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]);