Skip to content

Commit

Permalink
A bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
aous72 committed Oct 29, 2024
1 parent 5115fb5 commit 4d47c40
Showing 1 changed file with 6 additions and 6 deletions.
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) == line_buf::LFT_32BIT)
if (src_line->flags & line_buf::LFT_32BIT)
{
if ((dst_line->flags | line_buf::LFT_32BIT) == line_buf::LFT_32BIT)
if (dst_line->flags & 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) == line_buf::LFT_32BIT)
if (src_line->flags & line_buf::LFT_32BIT)
{
if ((dst_line->flags | line_buf::LFT_32BIT) == line_buf::LFT_32BIT)
if (dst_line->flags & 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) == line_buf::LFT_32BIT)
if (y->flags & 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) == line_buf::LFT_32BIT)
if (y->flags & line_buf::LFT_32BIT)
{
assert((y->flags | line_buf::LFT_32BIT) &&
(cb->flags | line_buf::LFT_32BIT) &&
Expand Down

0 comments on commit 4d47c40

Please sign in to comment.