From 6fb5add23c4c230135b9b3bac775978cd6f2c1de Mon Sep 17 00:00:00 2001 From: Aous Naman Date: Sun, 3 Nov 2024 12:46:41 +1100 Subject: [PATCH] Addresses one warning. --- src/core/coding/ojph_block_decoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/coding/ojph_block_decoder.cpp b/src/core/coding/ojph_block_decoder.cpp index 479926b..51aaae0 100644 --- a/src/core/coding/ojph_block_decoder.cpp +++ b/src/core/coding/ojph_block_decoder.cpp @@ -2048,12 +2048,12 @@ namespace ojph { u_ext = (ui16)(cond0 ? (vlc_val & 0xF) : 0); vlc_val = rev_advance64(&vlc, cond0 ? 4 : 0); u_q0 = (ui16)(u_q0 + (u_ext << 2)); - sp[1] = u_q0 + 1; // kappa = 1 + sp[1] = u_q0 + (ui16)1; // kappa = 1 cond1 = u_q1 - (u_bias >> 2) > 32; u_ext = (ui16)(cond1 ? (vlc_val & 0xF) : 0); vlc_val = rev_advance64(&vlc, cond1 ? 4 : 0); u_q1 = (ui16)(u_q1 + (u_ext << 2)); - sp[3] = u_q1 + 1; // kappa = 1 + sp[3] = u_q1 + (ui16)1; // kappa = 1 } sp[0] = sp[1] = 0;