From 99ddf2c50981ad72bc853f01be9939f3ff3d1dad Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 16 Jun 2023 18:08:04 +0200 Subject: [PATCH] core/scale: fix typos in scaling loop --- nihav-core/src/scale/scale/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nihav-core/src/scale/scale/mod.rs b/nihav-core/src/scale/scale/mod.rs index 0a62e0f..ae39ef3 100644 --- a/nihav-core/src/scale/scale/mod.rs +++ b/nihav-core/src/scale/scale/mod.rs @@ -294,11 +294,11 @@ macro_rules! scale_loop { } } let resizer = &mut $scalers[idx].1; - for (dline, sline) in $tbuf.chunks_mut(tstride).zip(src[ioff..].chunks(istride)).take(dh) { + for (dline, sline) in $tbuf.chunks_mut(tstride).zip(src[ioff..].chunks(istride)).take(sh) { resizer.resize_line(sline, sw, 1, dline, dw, 1); } } else { - for (dline, sline) in $tbuf.chunks_mut(tstride).zip(src[ioff..].chunks(istride)).take(dh) { + for (dline, sline) in $tbuf.chunks_mut(tstride).zip(src[ioff..].chunks(istride)).take(sh) { dline[..dw].copy_from_slice(&sline[..sw]); } } -- 2.39.5