Skip to content

Commit 7ed5b7c

Browse files
authored
lms: minor syntax fix (#1056)
1 parent 536d926 commit 7ed5b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lms/src/ots/modes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub trait LmsOtsMode: Typecode {
5454
let cksum = (&arr)
5555
.into_iter()
5656
.take(Self::U)
57-
.map(|&x| ((1u16 << Self::W) - 1 - (x as u16)))
57+
.map(|&x| (1u16 << Self::W) - 1 - (x as u16))
5858
.sum::<u16>()
5959
<< Self::LS;
6060

0 commit comments

Comments
 (0)