mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
[SF 2804457] DateTime::checkLimit looks wrong
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user