mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
[SF 2804457] DateTime::checkLimit looks wrong
This commit is contained in:
@@ -340,7 +340,7 @@ void DateTime::checkLimit(short& lower, short& higher, short limit)
|
|||||||
if (lower > limit)
|
if (lower > limit)
|
||||||
{
|
{
|
||||||
higher += short(lower / limit);
|
higher += short(lower / limit);
|
||||||
lower = short(lower % limit);
|
lower = short((lower % limit) - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user