Skip to content

Commit

Permalink
Fixes warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
aous72 committed Oct 29, 2024
1 parent 7e5e240 commit 5115fb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/core/codestream/ojph_tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ namespace ojph {
src_line = lines + comp_num;
else
src_line = comps[comp_num].pull_line();
si32* dp = tgt_line->i32 + line_offsets[comp_num];
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
12 changes: 6 additions & 6 deletions src/core/transform/ojph_colour.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ namespace ojph {
line_buf *dst_line, const ui32 dst_line_offset,
si64 shift, ui32 width)
{
if (src_line->flags | line_buf::LFT_32BIT)
if ((src_line->flags | line_buf::LFT_32BIT) == line_buf::LFT_32BIT)
{
if (dst_line->flags | line_buf::LFT_32BIT)
if ((dst_line->flags | line_buf::LFT_32BIT) == line_buf::LFT_32BIT)
{
const si32 *sp = src_line->i32 + src_line_offset;
si32 *dp = dst_line->i32 + dst_line_offset;
Expand Down Expand Up @@ -252,9 +252,9 @@ namespace ojph {
line_buf *dst_line, const ui32 dst_line_offset,
si64 shift, ui32 width)
{
if (src_line->flags | line_buf::LFT_32BIT)
if ((src_line->flags | line_buf::LFT_32BIT) == line_buf::LFT_32BIT)
{
if (dst_line->flags | line_buf::LFT_32BIT)
if ((dst_line->flags | line_buf::LFT_32BIT) == line_buf::LFT_32BIT)
{
const si32 *sp = src_line->i32 + src_line_offset;
si32 *dp = dst_line->i32 + dst_line_offset;
Expand Down Expand Up @@ -331,7 +331,7 @@ namespace ojph {
(g->flags | line_buf::LFT_REVERSIBLE) &&
(b->flags | line_buf::LFT_REVERSIBLE));

if (y->flags | line_buf::LFT_32BIT)
if ((y->flags | line_buf::LFT_32BIT) == line_buf::LFT_32BIT)
{
assert((y->flags | line_buf::LFT_32BIT) &&
(cb->flags | line_buf::LFT_32BIT) &&
Expand Down Expand Up @@ -381,7 +381,7 @@ namespace ojph {
(g->flags | line_buf::LFT_REVERSIBLE) &&
(b->flags | line_buf::LFT_REVERSIBLE));

if (y->flags | line_buf::LFT_32BIT)
if ((y->flags | line_buf::LFT_32BIT) == line_buf::LFT_32BIT)
{
assert((y->flags | line_buf::LFT_32BIT) &&
(cb->flags | line_buf::LFT_32BIT) &&
Expand Down

0 comments on commit 5115fb5

Please sign in to comment.