Skip to content

Commit 9fbee75

Browse files
committed
Fix std::array iterator comparison with element pointer
In MSVC's STL, the std::array iterators are not simply the elements pointer, and hence cannot be compared to them. Instead we dereference the iterator and take its address for comparison.
1 parent 8ed7a8e commit 9fbee75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/librawspeed/decompressors/VC5Decompressor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ VC5Decompressor::VC5Decompressor(ByteStream bs, const RawImage& img)
418418
wavelet.height = waveletHeight;
419419

420420
wavelet.bands.resize(
421-
&wavelet == channel.wavelets.begin() ? 1 : Wavelet::maxBands);
421+
&wavelet == &*channel.wavelets.begin() ? 1 : Wavelet::maxBands);
422422
}
423423
}
424424

0 commit comments

Comments
 (0)