[SF 2804457] DateTime::checkLimit looks wrong

This commit is contained in:
Aleksandar Fabijanic 2009-06-11 13:31:54 +00:00
parent 60fc5b6e28
commit 5245543642

View File

@ -340,7 +340,7 @@ void DateTime::checkLimit(short& lower, short& higher, short limit)
if (lower > limit)
{
higher += short(lower / limit);
lower = short(lower % limit);
lower = short((lower % limit) - 1);
}
}