Correct an inaccurate comment in inDateTimeRange()
Change-Id: I43bf3bf448792bfac05dccb8b57047b264dfb269 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
41248f2590
commit
57a1c2b0d9
@ -836,7 +836,8 @@ static bool inDateTimeRange(qint64 jd, bool start)
|
||||
jd -= JULIAN_DAY_FOR_EPOCH;
|
||||
const qint64 maxDay = Bounds::max() / MSECS_PER_DAY;
|
||||
const qint64 minDay = Bounds::min() / MSECS_PER_DAY - 1;
|
||||
// (Divisions rounded towards zero, as MSECS_PER_DAY has factors other than two.)
|
||||
// (Divisions rounded towards zero, as MSECS_PER_DAY is even - so doesn't
|
||||
// divide max() - and has factors other than two, so doesn't divide min().)
|
||||
// Range includes start of last day and end of first:
|
||||
if (start)
|
||||
return jd > minDay && jd <= maxDay;
|
||||
|
Loading…
Reference in New Issue
Block a user