From b8d2c0c600b714462edcaa50b105f1f44c0a8614 Mon Sep 17 00:00:00 2001 From: David Nikdel Date: Thu, 14 Jul 2016 23:49:31 -0400 Subject: [PATCH] fix casting --- include/libuv.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }); }