tag/IcyMetadataParser: use std::byte in ParseInPlace()

This commit is contained in:
Max Kellermann 2023-12-20 19:48:59 +01:00
parent 2c851498cc
commit 03352cb4ad

View File

@ -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);