Skip to content

Commit

Permalink
Address another warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aous72 committed Nov 3, 2024
1 parent 8558809 commit eafb965
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/codestream/ojph_tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ namespace ojph {
line_buf *tc = comps[comp_num].get_line();
if (reversible)
{
si64 shift = 1LL << (num_bits[comp_num] - 1);
si64 shift = (si64)1 << (num_bits[comp_num] - 1);
if (is_signed[comp_num] && nlt_type3[comp_num])
rev_convert_nlt_type3(line, line_offsets[comp_num],
tc, 0, shift + 1, comp_width);
Expand All @@ -282,7 +282,7 @@ namespace ojph {
}
else
{
si64 shift = 1LL << (num_bits[comp_num] - 1);
si64 shift = (si64)1 << (num_bits[comp_num] - 1);
ui32 comp_width = comp_rects[comp_num].siz.w;
if (reversible)
{
Expand Down Expand Up @@ -346,7 +346,7 @@ namespace ojph {
ui32 comp_width = recon_comp_rects[comp_num].siz.w;
if (reversible)
{
si64 shift = 1LL << (num_bits[comp_num] - 1);
si64 shift = (si64)1 << (num_bits[comp_num] - 1);
if (is_signed[comp_num] && nlt_type3[comp_num])
rev_convert_nlt_type3(src_line, 0, tgt_line,
line_offsets[comp_num], shift + 1, comp_width);
Expand Down Expand Up @@ -384,7 +384,7 @@ namespace ojph {
}
if (reversible)
{
si64 shift = 1LL << (num_bits[comp_num] - 1);
si64 shift = (si64)1 << (num_bits[comp_num] - 1);
line_buf* src_line;
if (comp_num < 3)
src_line = lines + comp_num;
Expand Down

0 comments on commit eafb965

Please sign in to comment.