Skip to content

Commit 43cba63

Browse files
committed
Fixed assert location
1 parent 3f77161 commit 43cba63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Plugins/PluginTIFF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,8 +743,8 @@ tiff_read_iptc_profile(TIFF *tiff, FIBITMAP *dib) {
743743
uint32_t profile_size = 0;
744744

745745
if (TIFFGetField(tiff, TIFFTAG_RICHTIFFIPTC, &profile_size, &profile) == 1) {
746-
assert(!(profile_size & 3));
747746
if (false && TIFFIsByteSwapped(tiff)) {
747+
assert(!(profile_size & 3));
748748
TIFFSwabArrayOfLong((uint32_t *) profile, (unsigned long)profile_size / 4);
749749
}
750750

0 commit comments

Comments
 (0)