From 8a5349e525c309dfc0c3fbe61fdecbd7c17813ed Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Mon, 31 Dec 2012 15:20:16 -0800 Subject: [PATCH] explicitly cast the after work callback function to "uv_after_work_cb" for node >= v0.9.4 compat --- src/Canvas.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Canvas.cc b/src/Canvas.cc index e4a2779..4cb0fa4 100644 --- a/src/Canvas.cc +++ b/src/Canvas.cc @@ -257,7 +257,7 @@ Canvas::ToBuffer(const Arguments &args) { #if NODE_VERSION_AT_LEAST(0, 6, 0) uv_work_t* req = new uv_work_t; req->data = closure; - uv_queue_work(uv_default_loop(), req, ToBufferAsync, ToBufferAsyncAfter); + uv_queue_work(uv_default_loop(), req, ToBufferAsync, (uv_after_work_cb)ToBufferAsyncAfter); #else eio_custom(EIO_ToBuffer, EIO_PRI_DEFAULT, EIO_AfterToBuffer, closure); ev_ref(EV_DEFAULT_UC);