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 ec1bf04 commit 8fefa65Copy full SHA for 8fefa65
negentropy/src/types.rs
@@ -210,9 +210,9 @@ impl Accumulator {
210
211
let mut wtr = Vec::with_capacity(ID_SIZE);
212
213
- for _ in 0..4 {
214
- let orig = Wrapping(u64::from_le_bytes(p[..8].try_into()?));
215
- let other_v = Wrapping(u64::from_le_bytes(po[..8].try_into()?));
+ for i in 0..4 {
+ let orig = Wrapping(u64::from_le_bytes(p[(i*8)..(i*8 + 8)].try_into()?));
+ let other_v = Wrapping(u64::from_le_bytes(po[(i*8)..(i*8 + 8)].try_into()?));
216
217
let mut next = orig;
218
0 commit comments