Commit f1d52843 authored by Tom Niget's avatar Tom Niget

Fix file.read not returning proper read byte count

parent 1a5bf295
...@@ -142,6 +142,7 @@ struct { ...@@ -142,6 +142,7 @@ struct {
if (nbytes < 0) { if (nbytes < 0) {
system_error(-nbytes, "read()"); system_error(-nbytes, "read()");
} }
buf.resize(nbytes);
co_return std::move(buf); co_return std::move(buf);
}) })
METHOD( METHOD(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment