Skip to content

Commit 1ada360

Browse files
kevinbackhouseneheb
authored andcommitted
Fix some incorrect format specifiers.
1 parent fc0e050 commit 1ada360

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/bmffimage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ void BmffImage::parseCr3Preview(DataBuf& data, std::ostream& out, bool bTrace, u
565565
nativePreviews_.push_back(nativePreview);
566566

567567
if (bTrace) {
568-
out << Internal::stringFormat("width,height,size = %u,%u,%u", nativePreview.width_, nativePreview.height_,
568+
out << Internal::stringFormat("width,height,size = %zu,%zu,%zu", nativePreview.width_, nativePreview.height_,
569569
nativePreview.size_);
570570
}
571571
}

src/image.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ void Image::printIFDStructure(BasicIo& io, std::ostream& out, Exiv2::PrintStruct
381381
const std::string offsetString = bOffsetIsPointer ? Internal::stringFormat("%10u", offset) : "";
382382

383383
out << Internal::indent(depth)
384-
<< Internal::stringFormat("%8u | %#06x %-28s |%10s |%9u |%10s | ", address, tag, tagName(tag).c_str(),
384+
<< Internal::stringFormat("%8zu | %#06x %-28s |%10s |%9u |%10s | ", address, tag, tagName(tag).c_str(),
385385
typeName(type), count, offsetString.c_str());
386386
if (isShortType(type)) {
387387
for (size_t k = 0; k < kount; k++) {

src/jp2image.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ void Jp2Image::printStructure(std::ostream& out, PrintStructureOption option, in
468468
DataBuf data(subBox.length - boxHSize);
469469
io_->read(data.data(), data.size());
470470
if (bPrint) {
471-
out << Internal::stringFormat("%8ld | %8ld | sub:", address, subBox.length) << toAscii(subBox.type)
471+
out << Internal::stringFormat("%8zu | %8u | sub:", address, subBox.length) << toAscii(subBox.type)
472472
<< " | "
473473
<< Internal::binaryToString(makeSlice(data, 0, std::min(static_cast<size_t>(30), data.size())));
474474
bLF = true;

0 commit comments

Comments
 (0)