Skip to content

Commit b743afb

Browse files
authored
Merge pull request #157 from Jason-elkins/fix_format_specifier
Fix non-standard format specifiers
2 parents 618d633 + 572ae6c commit b743afb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/KM_util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ namespace Kumu
103103
};
104104
#else
105105
struct i64Printer : public IntPrinter<i64_t, 32> {
106-
i64Printer(i64_t value) : IntPrinter<i64_t, 32>("%qd", value) {}
106+
i64Printer(i64_t value) : IntPrinter<i64_t, 32>("%lld", value) {}
107107
};
108108

109109
struct ui64Printer : public IntPrinter<ui64_t, 32> {
110-
ui64Printer(ui64_t value) : IntPrinter<ui64_t, 32>("%qu", value) {}
110+
ui64Printer(ui64_t value) : IntPrinter<ui64_t, 32>("%llu", value) {}
111111
};
112112
#endif
113113

src/MXF.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,11 +794,11 @@ ASDCP::MXF::OP1aHeader::InitFromFile(const Kumu::IFileReader& Reader)
794794
}
795795
else if ( HeaderByteCount < 1024 )
796796
{
797-
DefaultLogSink().Warn("Improbably small HeaderByteCount value: %qu\n", HeaderByteCount);
797+
DefaultLogSink().Warn("Improbably small HeaderByteCount value: %llu\n", HeaderByteCount);
798798
}
799799
else if (HeaderByteCount > ( 4 * Kumu::Megabyte ) )
800800
{
801-
DefaultLogSink().Warn("Improbably huge HeaderByteCount value: %qu\n", HeaderByteCount);
801+
DefaultLogSink().Warn("Improbably huge HeaderByteCount value: %llu\n", HeaderByteCount);
802802
}
803803

804804
result = m_HeaderData.Capacity(Kumu::xmin(4*Kumu::Megabyte, static_cast<ui32_t>(HeaderByteCount)));

src/klvwalk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ main(int argc, const char** argv)
324324

325325
if ( plain_part.ThisPartition != i->ByteOffset )
326326
{
327-
DefaultLogSink().Error("ThisPartition value error: wanted=%qu, got=%qu\n",
327+
DefaultLogSink().Error("ThisPartition value error: wanted=%llu, got=%llu\n",
328328
plain_part.ThisPartition, i->ByteOffset);
329329
}
330330

0 commit comments

Comments
 (0)