Skip to content

Commit 2b6fb15

Browse files
committed
Reduce warnings.
1 parent 630217f commit 2b6fb15

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/core/coding/ojph_block_decoder.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,9 +1814,9 @@ namespace ojph {
18141814
ui32 width, ui32 height, ui32 stride,
18151815
bool stripe_causal)
18161816
{
1817-
static bool insufficient_precision = false;
1818-
static bool modify_code = false;
1819-
static bool truncate_spp_mrp = false;
1817+
// static bool insufficient_precision = false;
1818+
// static bool modify_code = false;
1819+
// static bool truncate_spp_mrp = false;
18201820

18211821
if (num_passes > 1 && lengths2 == 0)
18221822
{
@@ -2045,12 +2045,12 @@ namespace ojph {
20452045
cond0 = u_q0 > 32;
20462046
u_ext = (ui16)(cond0 ? (uvlc_entry & 0xF) : 0);
20472047
vlc_val = rev_advance64(&vlc, cond0 ? 4 : 0);
2048-
u_q0 += u_ext << 2;
2048+
u_q0 = (ui16)(u_q0 + (u_ext << 2));
20492049
sp[1] = u_q0;
20502050
cond1 = u_q1 > 32;
20512051
u_ext = (ui16)(cond1 ? (uvlc_entry & 0xF) : 0);
20522052
vlc_val = rev_advance64(&vlc, cond1 ? 4 : 0);
2053-
u_q1 += u_ext << 2;
2053+
u_q1 = (ui16)(u_q1 + (u_ext << 2));
20542054
sp[3] = u_q1;
20552055
}
20562056
sp[0] = sp[1] = 0;
@@ -2167,12 +2167,12 @@ namespace ojph {
21672167
cond0 = u_q0 > 32;
21682168
u_ext = (ui16)(cond0 ? (uvlc_entry & 0xF) : 0);
21692169
vlc_val = rev_advance64(&vlc, cond0 ? 4 : 0);
2170-
u_q0 += u_ext << 2;
2170+
u_q0 = (ui16)(u_q0 + (u_ext << 2));
21712171
sp[1] = u_q0;
21722172
cond1 = u_q1 > 32;
21732173
u_ext = (ui16)(cond1 ? (uvlc_entry & 0xF) : 0);
21742174
vlc_val = rev_advance64(&vlc, cond1 ? 4 : 0);
2175-
u_q1 += u_ext << 2;
2175+
u_q1 = (ui16)(u_q1 + (u_ext << 2));
21762176
sp[3] = u_q1;
21772177
}
21782178
sp[0] = sp[1] = 0;

0 commit comments

Comments
 (0)