From 780074dc52d0a7f44eceb2ab83c4b98e8b315caa Mon Sep 17 00:00:00 2001 From: Delio Vicini Date: Thu, 15 Aug 2024 16:49:41 +0200 Subject: [PATCH] Fix unique_ptr type for stream read --- src/core/python/stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))