Skip to content

Commit

Permalink
Avoid implicit cast from Uint8 to bool.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelonken committed Oct 20, 2022
1 parent 2a576ec commit 5158242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dcmdata/libi2d/i2djpgs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ OFCondition I2DJpegSource::readPixelData(Uint16& rows,
closeFile();
return cond;
}
m_lossyCompressed = nearLossless;
m_lossyCompressed = (nearLossless >= 1 ? OFTrue : OFFalse);

// APP8 marker was found, check if this is one of the accepted HP transform ones
if (entryApp8 != m_jpegFileMap.end())
Expand Down

0 comments on commit 5158242

Please sign in to comment.