diff --git a/src/io/BufferedReader.hxx b/src/io/BufferedReader.hxx index 8df6b3909..aee2bc770 100644 --- a/src/io/BufferedReader.hxx +++ b/src/io/BufferedReader.hxx @@ -68,7 +68,7 @@ public: template void ReadFullT(T &dest) { - ReadFull({&dest, sizeof(dest)}); + ReadFull(std::as_writable_bytes(std::span{&dest, 1})); } template