From 7a68faff366a207ddee4adf79dba3009f4f454c0 Mon Sep 17 00:00:00 2001 From: Tushar Maheshwari Date: Sun, 2 Oct 2016 23:40:55 +0530 Subject: [PATCH] Fix Linux/macOS builds --- src/uvw/fs.hpp | 4 ++-- src/uvw/stream.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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); } /**