Skip to content

Commit

Permalink
2nd attempt to get rid of warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
aous72 committed Sep 17, 2024
1 parent 517e1be commit 2626fe2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/codestream/ojph_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ namespace ojph {
else
{
p->BDnlt = (ui8)(siz.get_bit_depth(c) - 1);
p->BDnlt |= (ui8)(siz.is_signed(c) ? 0x80 : (ui8)0);
p->BDnlt = (ui8)(p->BDnlt | (siz.is_signed(c) ? 0x80 : 0));
}
}

Expand All @@ -1298,7 +1298,7 @@ namespace ojph {
p = add_object(c);
p->enabled = true;
p->BDnlt = (ui8)(siz.get_bit_depth(c) - 1);
p->BDnlt |= siz.is_signed(c) ? 0x80 : (ui8)0;
p->BDnlt = (ui8)(p->BDnlt | (siz.is_signed(c) ? 0x80 : 0));
}
}
}
Expand Down Expand Up @@ -1327,7 +1327,7 @@ namespace ojph {
p = p ? p : this;
if (p->enabled)
{
bit_depth = (p->BDnlt & 0x7F) + (ui8)1;
bit_depth = (ui8)((p->BDnlt & 0x7F) + 1);
bit_depth = bit_depth <= 38 ? bit_depth : 38;
is_signed = (p->BDnlt & 0x80) == 0x80;
}
Expand Down

0 comments on commit 2626fe2

Please sign in to comment.