mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 05:00:27 +00:00
[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:
parent
44408ed371
commit
9c2f0f7e3a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue