diff --git a/include/libuv.h b/include/libuv.h index d3aa8f3..612b254 100644 --- a/include/libuv.h +++ b/include/libuv.h @@ -63,7 +63,7 @@ private: // tell the connection that its filedescriptor is active int fd = -1; - uv_fileno(static_cast(handle), &fd); + uv_fileno(reinterpret_cast(handle), &fd); connection->process(fd, uv_to_amqp_events(events)); } @@ -107,9 +107,9 @@ private: uv_poll_stop(_poll); // close the handle - uv_close(static_cast(_poll), [](uv_handle_t* handle) { + uv_close(reinterpret_cast(_poll), [](uv_handle_t* handle) { // delete memory once closed - delete static_cast(handle); + delete reinterpret_cast(handle); }); }