io/BufferedReader: fix ReadFullT() after std::span migration

This commit is contained in:
Max Kellermann 2023-09-12 09:32:09 +02:00
parent daf935d310
commit 859ffddea3
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ public:
template<typename T>
void ReadFullT(T &dest) {
ReadFull({&dest, sizeof(dest)});
ReadFull(std::as_writable_bytes(std::span{&dest, 1}));
}
template<typename T>