Merge pull request #6750 from davidtek/master

#6749 Wrong operator on stride variable causing incorrect behaviour
This commit is contained in:
Michael Friedrich 2018-12-05 11:05:05 +01:00 committed by GitHub
commit b6212e92fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ bool LegacyTimePeriod::IsInTimeRange(tm *begin, tm *end, int stride, tm *referen
int daynumber = (tsref - tsbegin) / (24 * 60 * 60); int daynumber = (tsref - tsbegin) / (24 * 60 * 60);
if (stride > 1 && daynumber % stride == 0) if (stride > 1 && daynumber % stride > 0)
return false; return false;
return true; return true;