From 2075a9a99928deeb91de082885878ec2e6d06788 Mon Sep 17 00:00:00 2001 From: Max Kellermann <max.kellermann@gmail.com> Date: Tue, 26 Sep 2023 15:48:20 +0200 Subject: [PATCH] encoder/ToOutputStream: remove unnecessary cast --- src/encoder/ToOutputStream.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoder/ToOutputStream.cxx b/src/encoder/ToOutputStream.cxx index f87453339..eec2a7b5b 100644 --- a/src/encoder/ToOutputStream.cxx +++ b/src/encoder/ToOutputStream.cxx @@ -12,7 +12,7 @@ EncoderToOutputStream(OutputStream &os, Encoder &encoder) /* read from the encoder */ std::byte buffer[32768]; - const auto r = encoder.Read(std::span{buffer}); + const auto r = encoder.Read(buffer); if (r.empty()) return;