From 03352cb4ad8c7cf5974c60e9260eb26890ff683c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 20 Dec 2023 19:48:59 +0100 Subject: [PATCH] tag/IcyMetadataParser: use std::byte in ParseInPlace() --- src/tag/IcyMetaDataParser.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tag/IcyMetaDataParser.cxx b/src/tag/IcyMetaDataParser.cxx index 158cac712..5abd070f6 100644 --- a/src/tag/IcyMetaDataParser.cxx +++ b/src/tag/IcyMetaDataParser.cxx @@ -236,9 +236,9 @@ IcyMetaDataParser::Meta(const void *data, size_t length) noexcept size_t IcyMetaDataParser::ParseInPlace(void *data, size_t length) noexcept { - auto *const dest0 = (uint8_t *)data; - uint8_t *dest = dest0; - const uint8_t *src = dest0; + auto *const dest0 = (std::byte *)data; + std::byte *dest = dest0; + const std::byte *src = dest0; while (length > 0) { size_t chunk = Data(length);