Skip to content

Commit f4d2adb

Browse files
1div0scott-wilson
authored andcommitted
Fixed the sign compare causing build failure (AcademySoftwareFoundation#4240)
This is a trivial fix for build with warnings treated as errors. Signed-off-by: Peter Kovář <peter.kovar@reflexion.tv> Signed-off-by: Scott Wilson <scott@propersquid.com>
1 parent 5f3ade3 commit f4d2adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jpegxl.imageio/jxloutput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ JxlOutput::open(const std::string& name, const ImageSpec& newspec,
187187
JxlEncoderSetBasicInfo(m_encoder.get(), &m_basic_info);
188188

189189
if (m_basic_info.num_extra_channels > 0) {
190-
for (int i = 0; i < m_basic_info.num_extra_channels; i++) {
190+
for (uint32_t i = 0; i < m_basic_info.num_extra_channels; i++) {
191191
JxlExtraChannelType type = JXL_CHANNEL_ALPHA;
192192
JxlExtraChannelInfo extra_channel_info;
193193

0 commit comments

Comments
 (0)