diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2023-01-31 14:20:13 +0100 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2023-02-02 17:22:29 +0100 |
| commit | 57a1c2b0d94304b24d8ca9a49ecd5033ff9fc43a (patch) | |
| tree | 38100ae285823e34ba6312f2dbc46ef2d802fa4c | |
| parent | 41248f259005aa3052d569def9f873afee4ac8f6 (diff) | |
Correct an inaccurate comment in inDateTimeRange()
Change-Id: I43bf3bf448792bfac05dccb8b57047b264dfb269
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
| -rw-r--r-- | src/corelib/time/qdatetime.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/time/qdatetime.cpp b/src/corelib/time/qdatetime.cpp index 44e195ec98d..fdd2aa77935 100644 --- a/src/corelib/time/qdatetime.cpp +++ b/src/corelib/time/qdatetime.cpp @@ -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; |
