Skip to content

Commit 5115fb5

Browse files
committed
Fixes warnings.
1 parent 7e5e240 commit 5115fb5

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/core/codestream/ojph_tile.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,6 @@ namespace ojph {
391391
src_line = lines + comp_num;
392392
else
393393
src_line = comps[comp_num].pull_line();
394-
si32* dp = tgt_line->i32 + line_offsets[comp_num];
395394
if (is_signed[comp_num] && nlt_type3[comp_num])
396395
rev_convert_nlt_type3(src_line, 0, tgt_line,
397396
line_offsets[comp_num], shift + 1, comp_width);

src/core/transform/ojph_colour.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ namespace ojph {
217217
line_buf *dst_line, const ui32 dst_line_offset,
218218
si64 shift, ui32 width)
219219
{
220-
if (src_line->flags | line_buf::LFT_32BIT)
220+
if ((src_line->flags | line_buf::LFT_32BIT) == line_buf::LFT_32BIT)
221221
{
222-
if (dst_line->flags | line_buf::LFT_32BIT)
222+
if ((dst_line->flags | line_buf::LFT_32BIT) == line_buf::LFT_32BIT)
223223
{
224224
const si32 *sp = src_line->i32 + src_line_offset;
225225
si32 *dp = dst_line->i32 + dst_line_offset;
@@ -252,9 +252,9 @@ namespace ojph {
252252
line_buf *dst_line, const ui32 dst_line_offset,
253253
si64 shift, ui32 width)
254254
{
255-
if (src_line->flags | line_buf::LFT_32BIT)
255+
if ((src_line->flags | line_buf::LFT_32BIT) == line_buf::LFT_32BIT)
256256
{
257-
if (dst_line->flags | line_buf::LFT_32BIT)
257+
if ((dst_line->flags | line_buf::LFT_32BIT) == line_buf::LFT_32BIT)
258258
{
259259
const si32 *sp = src_line->i32 + src_line_offset;
260260
si32 *dp = dst_line->i32 + dst_line_offset;
@@ -331,7 +331,7 @@ namespace ojph {
331331
(g->flags | line_buf::LFT_REVERSIBLE) &&
332332
(b->flags | line_buf::LFT_REVERSIBLE));
333333

334-
if (y->flags | line_buf::LFT_32BIT)
334+
if ((y->flags | line_buf::LFT_32BIT) == line_buf::LFT_32BIT)
335335
{
336336
assert((y->flags | line_buf::LFT_32BIT) &&
337337
(cb->flags | line_buf::LFT_32BIT) &&
@@ -381,7 +381,7 @@ namespace ojph {
381381
(g->flags | line_buf::LFT_REVERSIBLE) &&
382382
(b->flags | line_buf::LFT_REVERSIBLE));
383383

384-
if (y->flags | line_buf::LFT_32BIT)
384+
if ((y->flags | line_buf::LFT_32BIT) == line_buf::LFT_32BIT)
385385
{
386386
assert((y->flags | line_buf::LFT_32BIT) &&
387387
(cb->flags | line_buf::LFT_32BIT) &&

0 commit comments

Comments
 (0)