Fix compilation with libc++

This commit is contained in:
Martchus 2021-12-05 17:49:36 +01:00
parent 4900d7dc7e
commit cb52a1521e
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,9 @@ void MpegAudioFrame::parseHeader(BinaryReader &reader, Diagnostics &diag)
m_header = reader.readUInt32BE();
if (!isValid()) {
diag.emplace_back(DiagLevel::Critical,
"Frame 0x" % numberToString(m_header, 16u) % " at 0x" % numberToString<std::int64_t>(reader.stream()->tellg() - 4l, 16) + " is invalid.",
"Frame 0x" % numberToString(m_header, 16u) % " at 0x"
% numberToString<std::int64_t>(reader.stream()->tellg() - static_cast<std::streamoff>(4), 16)
+ " is invalid.",
"parsing MPEG audio frame header");
throw InvalidDataException();
}