diff options
Diffstat (limited to 'src/iter.rs')
-rw-r--r-- | src/iter.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iter.rs b/src/iter.rs index dd1066a..e556318 100644 --- a/src/iter.rs +++ b/src/iter.rs @@ -310,7 +310,7 @@ pub fn is_filtered(ii: &IterInfo, current_day: usize, options: &ParsedOptions) - && !includes(&options.bynmonthday, &ii.nmdaymask().unwrap()[current_day])) || (not_empty(&options.byyearday) && ((current_day < ii.yearlen().unwrap() - && !includes(&options.byyearday, &(current_day + 1)) + && !includes(&options.byyearday, &(current_day as isize + 1)) && !includes( &options.byyearday.iter().map(|v| *v as isize).collect(), &(-(ii.yearlen().unwrap() as isize) + current_day as isize), @@ -318,7 +318,7 @@ pub fn is_filtered(ii: &IterInfo, current_day: usize, options: &ParsedOptions) - || (current_day >= ii.yearlen().unwrap() && !includes( &options.byyearday, - &(current_day + 1 - ii.yearlen().unwrap()), + &((current_day + 1 - ii.yearlen().unwrap()) as isize), ) && !includes( &options.byyearday.iter().map(|v| *v as isize).collect(), |