diff --git a/src/uvw/fs.hpp b/src/uvw/fs.hpp index 0159954e..a0b867c8 100644 --- a/src/uvw/fs.hpp +++ b/src/uvw/fs.hpp @@ -428,13 +428,13 @@ protected: template void cleanupAndInvoke(Args&&... args) { - uv_fs_req_cleanup(get()); + uv_fs_req_cleanup(this->get()); this->invoke(std::forward(args)...); } template void cleanupAndInvokeSync(F &&f, Args&&... args) { - uv_fs_req_cleanup(get()); + uv_fs_req_cleanup(this->get()); std::forward(f)(std::forward(args)..., nullptr); } diff --git a/src/uvw/stream.hpp b/src/uvw/stream.hpp index b20abfa5..0ec02aa7 100644 --- a/src/uvw/stream.hpp +++ b/src/uvw/stream.hpp @@ -243,7 +243,7 @@ public: * An EndEvent event will be emitted when there is no more data to read. */ void read() { - this->invoke(&uv_read_start, this->template get(), &allocCallback, &readCallback); + this->invoke(&uv_read_start, this->template get(), &this->allocCallback, &readCallback); } /**