Skip to content

Commit

Permalink
Fixed the sign compare causing build failure (AcademySoftwareFoundati…
Browse files Browse the repository at this point in the history
…on#4240)

This is a trivial fix for build with warnings treated as errors.

Signed-off-by: Peter Kovář <[email protected]>
  • Loading branch information
1div0 authored Apr 21, 2024
1 parent 9073b6c commit 1c81e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jpegxl.imageio/jxloutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ JxlOutput::open(const std::string& name, const ImageSpec& newspec,
JxlEncoderSetBasicInfo(m_encoder.get(), &m_basic_info);

if (m_basic_info.num_extra_channels > 0) {
for (int i = 0; i < m_basic_info.num_extra_channels; i++) {
for (uint32_t i = 0; i < m_basic_info.num_extra_channels; i++) {
JxlExtraChannelType type = JXL_CHANNEL_ALPHA;
JxlExtraChannelInfo extra_channel_info;

Expand Down

0 comments on commit 1c81e49

Please sign in to comment.