Skip to content

Commit

Permalink
Definitely no overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Melirius committed Nov 28, 2024
1 parent e4d4573 commit c982a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub const fn devli(s: u8, value: u16) -> i16 {
if value & (shifted >> 1) != 0 {
value as i16
} else {
(!shifted + 2 + value) as i16
value.wrapping_add(2).wrapping_add(!shifted) as i16
}
}

Expand Down

0 comments on commit c982a21

Please sign in to comment.