diff --git a/src/core/python/stream.cpp b/src/core/python/stream.cpp index aa06e96ce..74a18898f 100644 --- a/src/core/python/stream.cpp +++ b/src/core/python/stream.cpp @@ -47,7 +47,7 @@ MI_PY_EXPORT(Stream) { s.write(b.c_str(), b.size()); }, D(Stream, write)) .def("read", [](Stream &s, size_t size) { - std::unique_ptr tmp(new char[size]); + std::unique_ptr tmp(new char[size]); s.read((void *) tmp.get(), size); return nb::bytes(tmp.get(), size); }, D(Stream, write))