Skip to content

Commit

Permalink
Merge pull request #1801 from kevinbackhouse/FixBuildDebugMessages
Browse files Browse the repository at this point in the history
Fix build error when EXIV2_DEBUG_MESSAGES is enabled
  • Loading branch information
kevinbackhouse authored Jul 26, 2021
2 parents de6b706 + f0371af commit c6f7e48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/iptc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ namespace Exiv2 {
sprintf(buff, " %6d | %7d | %-24s | %6d | ", record, dataset,
Exiv2::IptcDataSets::dataSetName(dataset, record).c_str(), len);

enforce(bytes.size() - i >= 5 + len, kerCorruptedMetadata);
enforce(bytes.size() - i >= 5 + static_cast<size_t>(len), kerCorruptedMetadata);
out << buff << Internal::binaryToString(makeSlice(bytes, i + 5, i + 5 + (len > 40 ? 40 : len)))
<< (len > 40 ? "..." : "")
<< std::endl;
Expand Down
2 changes: 1 addition & 1 deletion src/jpgimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ namespace Exiv2 {
if (size >= 16) {
out.write(reinterpret_cast<const char*>(buf.pData_ + 16), size - 16);
#ifdef EXIV2_DEBUG_MESSAGES
std::cout << "iccProfile size = " << icc.size_ << std::endl;
std::cout << "iccProfile size = " << size - 16 << std::endl;
#endif
}
} else if (option == kpsIptcErase && signature.compare("Photoshop 3.0") == 0) {
Expand Down

0 comments on commit c6f7e48

Please sign in to comment.