diff options
author | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-17 19:52:44 +0200 |
---|---|---|
committer | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-17 19:52:44 +0200 |
commit | 7f90c6abb134490f2e55471a96128f632588f445 (patch) | |
tree | 19d492a43f34987805d3553baa38b470f284313e /src/masks.rs | |
parent | fdacd3669bbc4dc0d80dd81fc6b241c0b97a2116 (diff) | |
download | rust_rrule-7f90c6abb134490f2e55471a96128f632588f445.zip |
negative month day tests and support
Diffstat (limited to 'src/masks.rs')
-rw-r--r-- | src/masks.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/masks.rs b/src/masks.rs index 59d4ee1..8b2f6b0 100644 --- a/src/masks.rs +++ b/src/masks.rs @@ -15,8 +15,8 @@ pub struct Masks { pub m365range: Vec<usize>, pub m366: Vec<usize>, pub m366range: Vec<usize>, - pub mday365: Vec<usize>, - pub mday366: Vec<usize>, + pub mday365: Vec<isize>, + pub mday366: Vec<isize>, pub nmday365: Vec<isize>, pub nmday366: Vec<isize>, } @@ -74,6 +74,7 @@ impl Default for Masks { ] .into_iter() .flatten() + .map(|d| d as isize) .collect(), m366range: vec![0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366], mday365: vec![ @@ -93,6 +94,7 @@ impl Default for Masks { ] .into_iter() .flatten() + .map(|d| d as isize) .collect(), m366: vec![ vec![1; 31], |