Permalink
Browse files

explicitly cast the after work callback function to "uv_after_work_cb"

for node >= v0.9.4 compat
  • Loading branch information...
1 parent 900d61f commit 8a5349e525c309dfc0c3fbe61fdecbd7c17813ed @TooTallNate TooTallNate committed Dec 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Canvas.cc
View
@@ -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);

0 comments on commit 8a5349e

Please sign in to comment.