From a224225e484043de7159db30fa4aa896dd14c557 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 26 Aug 2021 13:40:04 +0200 Subject: [PATCH] pcm/AudioFormat: use std::size_t --- src/pcm/AudioFormat.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pcm/AudioFormat.hxx b/src/pcm/AudioFormat.hxx index 321e0ab93..541aba292 100644 --- a/src/pcm/AudioFormat.hxx +++ b/src/pcm/AudioFormat.hxx @@ -26,7 +26,7 @@ #include #include -template class StringBuffer; +template class StringBuffer; /** * This structure describes the format of a raw PCM stream. @@ -152,8 +152,8 @@ struct AudioFormat { } template - constexpr size_t TimeToSize(D t) const noexcept { - return size_t(size_t(TimeToFrames(t)) * GetFrameSize()); + constexpr std::size_t TimeToSize(D t) const noexcept { + return std::size_t(std::size_t(TimeToFrames(t)) * GetFrameSize()); } template