From 2c2ccb536790e91226532dad3d3ae50603ab481a Mon Sep 17 00:00:00 2001 From: Jamaika1 Date: Thu, 31 Oct 2024 09:58:58 +0100 Subject: [PATCH] Fix shifting negative value warning --- source/Lib/CommonLib/InterpolationFilter.cpp | 22 ++++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/source/Lib/CommonLib/InterpolationFilter.cpp b/source/Lib/CommonLib/InterpolationFilter.cpp index 8e619f62d..b2de9715b 100644 --- a/source/Lib/CommonLib/InterpolationFilter.cpp +++ b/source/Lib/CommonLib/InterpolationFilter.cpp @@ -395,12 +395,12 @@ void InterpolationFilter::filter(const ClpRng& clpRng, Pel const *src, int srcSt { shift += (isFirst) ? 0 : headRoom; offset = 1 << (shift - 1); - offset += (isFirst) ? 0 : IF_INTERNAL_OFFS << IF_FILTER_PREC; + offset += (isFirst) ? 0 : (IF_INTERNAL_OFFS << IF_FILTER_PREC); } else { shift -= (isFirst) ? headRoom : 0; - offset = (isFirst) ? -IF_INTERNAL_OFFS *(1<