Skip to content

Commit ec6c712

Browse files
committed
fn decode_coefs_class: Replace .wrapping_add(!0x7ff) with + !0x7ff. It's impossible to overflow.
1 parent 272b43f commit ec6c712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/recon.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ fn decode_coefs<BD: BitDepth>(
929929
} else {
930930
0
931931
};
932-
tok = (tok >> 9) & (rc as u32).wrapping_add(!0x7ff);
932+
tok = (tok >> 9) & (rc as u32 + !0x7ff);
933933
debug_assert!(tok == tok_check as u32);
934934
debug_assert!(tok_non_zero == (tok != 0));
935935
if tok_non_zero {

0 commit comments

Comments
 (0)