[SF 2804457] DateTime::checkLimit looks wrong

This commit is contained in:
Aleksandar Fabijanic
2009-06-15 22:23:41 +00:00
parent 5245543642
commit 29bd22fe69
2 changed files with 15 additions and 15 deletions

View File

@@ -427,6 +427,16 @@ inline void swap(DateTime& d1, DateTime& d2)
}
inline void DateTime::checkLimit(short& lower, short& higher, short limit)
{
if (lower >= limit)
{
higher += short(lower / limit);
lower = short(lower % limit);
}
}
} // namespace Poco