From 8f7da91db3df4ff69103387da5b8ed8f877bded4 Mon Sep 17 00:00:00 2001 From: Khyber Sen Date: Mon, 6 May 2024 16:22:02 -0700 Subject: [PATCH] `fn inv_txfm_add_rust`: Redeclare `c` var as an immut slice when reused. --- src/itx.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/itx.rs b/src/itx.rs index 924ec5482..e0c65f050 100644 --- a/src/itx.rs +++ b/src/itx.rs @@ -149,11 +149,11 @@ pub unsafe fn inv_txfm_add_rust< ); } - c = &mut tmp[..]; + let mut c = &tmp[..]; for _ in 0..H { for x in 0..W { *dst.add(x) = bd.iclip_pixel((*dst.add(x)).as_::() + (c[0] + 8 >> 4)); - c = &mut c[1..]; + c = &c[1..]; } dst = dst.offset(BD::pxstride(stride)); }