Skip to content

Commit ce6f33a

Browse files
committed
fix: type warning in assertion in jpeg2000output.cpp
Signed-off-by: Larry Gritz <[email protected]>
1 parent 6b4f081 commit ce6f33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jpeg2000.imageio/jpeg2000output.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ Jpeg2000Output::write_jph_scanline(int y, int /*z*/, const void* data)
831831
ojph::ui32 next_comp = 0;
832832
ojph::line_buf* cur_line = m_jph_stream->exchange(NULL, next_comp);
833833
for (int c = 0; c < m_spec.nchannels; ++c) {
834-
assert(c == next_comp);
834+
OIIO_ASSERT(ojph::ui32(c) == next_comp);
835835
for (int i = 0, j = c; i < m_spec.width; i++) {
836836
unsigned int val = scanline[j];
837837
j += m_spec.nchannels;

0 commit comments

Comments
 (0)