From 898746151e56c796771d70ed987dd01bd807a834 Mon Sep 17 00:00:00 2001 From: Paolo Monteverde Date: Wed, 30 Nov 2016 10:02:10 +0100 Subject: [PATCH] fixed compilation errors --- src/uvw/stream.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uvw/stream.hpp b/src/uvw/stream.hpp index f2d5d2bd..f1eb8dda 100644 --- a/src/uvw/stream.hpp +++ b/src/uvw/stream.hpp @@ -143,7 +143,7 @@ class StreamHandle: public Handle { static void readCallback(uv_stream_t *handle, ssize_t nread, const uv_buf_t *buf) { T &ref = *(static_cast(handle->data)); // data will be destroyed no matter of what the value of nread is - std::unique_ptr data{buf->base}; + std::unique_ptr data{buf->base}; if(nread == UV_EOF) { // end of stream