We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d37807f commit 5cf1631Copy full SHA for 5cf1631
crates/year2017/src/day13.rs
@@ -42,8 +42,8 @@ impl Day13 {
42
// delay % modulus can't equal the value
43
let mut constraints = BTreeMap::new();
44
for &(depth, range) in &self.layers {
45
- let modulus = (range as i32 - 1) * 2;
46
- let disallowed_value = (-(depth as i32)).rem_euclid(modulus);
+ let modulus = (range as i64 - 1) * 2;
+ let disallowed_value = (-(depth as i64)).rem_euclid(modulus);
47
48
constraints
49
.entry(modulus)
0 commit comments