fixed compilation errors
This commit is contained in:
parent
dd1f45ea19
commit
898746151e
@ -143,7 +143,7 @@ class StreamHandle: public Handle<T, U> {
|
||||
static void readCallback(uv_stream_t *handle, ssize_t nread, const uv_buf_t *buf) {
|
||||
T &ref = *(static_cast<T*>(handle->data));
|
||||
// data will be destroyed no matter of what the value of nread is
|
||||
std::unique_ptr<const char[]> data{buf->base};
|
||||
std::unique_ptr<char[]> data{buf->base};
|
||||
|
||||
if(nread == UV_EOF) {
|
||||
// end of stream
|
||||
|
||||
Loading…
Reference in New Issue
Block a user