[ATL] atltime.h: fix assertion: hours of a day are in the range 0-23, not 0-59

svn path=/trunk/; revision=72798
This commit is contained in:
Benedikt Freisen 2016-09-25 09:33:56 +00:00
parent 44408ed371
commit 9c2f0f7e3a

View file

@ -35,7 +35,7 @@ public:
CTimeSpan(LONG lDays, int nHours, int nMins, int nSecs) throw() CTimeSpan(LONG lDays, int nHours, int nMins, int nSecs) throw()
{ {
ATLASSERT(lDays >= 0 && nHours >= 0 && nHours <= 59 && nMins >= 0 && nMins <= 59 && nSecs >= 0 && nSecs <= 59); ATLASSERT(lDays >= 0 && nHours >= 0 && nHours <= 23 && nMins >= 0 && nMins <= 59 && nSecs >= 0 && nSecs <= 59);
m_nSpan = ((((LONGLONG)lDays) * 24 + nHours) * 60 + nMins) * 60 + nSecs; m_nSpan = ((((LONGLONG)lDays) * 24 + nHours) * 60 + nMins) * 60 + nSecs;
} }