From 64d2904f9321a74751ad1bcc3a154455c8745af1 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Thu, 11 Jan 2024 12:26:52 +0100 Subject: [PATCH] fix(pcmaudio): cast bytes_per_sample to int before logging --- src/dwarfs/categorizer/pcmaudio_categorizer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dwarfs/categorizer/pcmaudio_categorizer.cpp b/src/dwarfs/categorizer/pcmaudio_categorizer.cpp index 645a5b85..a4948221 100644 --- a/src/dwarfs/categorizer/pcmaudio_categorizer.cpp +++ b/src/dwarfs/categorizer/pcmaudio_categorizer.cpp @@ -816,7 +816,8 @@ bool pcmaudio_categorizer_::check_caf( LOG_WARN << "[CAF] " << path << ": `data` chunk size mismatch (pcm_len=" << pcm_length << ", #chan=" << meta.number_of_channels - << ", bytes_per_sample=" << meta.bytes_per_sample << ")"; + << ", bytes_per_sample=" + << static_cast(meta.bytes_per_sample) << ")"; return false; } @@ -996,7 +997,8 @@ bool pcmaudio_categorizer_::check_wav_like( LOG_WARN << "[" << FormatPolicy::format_name << "] " << path << ": `data` chunk size mismatch (pcm_len=" << pcm_length << ", #chan=" << meta.number_of_channels - << ", bytes_per_sample=" << meta.bytes_per_sample << ")"; + << ", bytes_per_sample=" + << static_cast(meta.bytes_per_sample) << ")"; return false; }