Skip to content

Commit

Permalink
Merge pull request #1 from kevinswiber/node-v0.10-support
Browse files Browse the repository at this point in the history
Casting last argument of uv_queue_work to uv_after_work_cb for Node v0.10.x compatibility
  • Loading branch information
kazupon committed Apr 16, 2014
2 parents 0fa4eaf + 26759cf commit a72c0ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mappedbuffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Handle<Value> MappedBuffer::New(const Arguments &args) {
uv_req->data = req;

int32_t ret = uv_queue_work(
uv_default_loop(), uv_req, MappedBuffer::OnWork, MappedBuffer::OnWorkDone
uv_default_loop(), uv_req, MappedBuffer::OnWork, (uv_after_work_cb)MappedBuffer::OnWorkDone
);
assert(ret == 0);
return scope.Close(args.This());
Expand Down Expand Up @@ -227,7 +227,7 @@ Handle<Value> MappedBuffer::Unmap(const Arguments &args) {
uv_req->data = req;

int32_t ret = uv_queue_work(
uv_default_loop(), uv_req, MappedBuffer::OnWork, MappedBuffer::OnWorkDone
uv_default_loop(), uv_req, MappedBuffer::OnWork, (uv_after_work_cb)MappedBuffer::OnWorkDone
);
assert(ret == 0);

Expand Down Expand Up @@ -294,7 +294,7 @@ Handle<Value> MappedBuffer::Fill(const Arguments &args) {
uv_req->data = req;

int32_t ret = uv_queue_work(
uv_default_loop(), uv_req, MappedBuffer::OnWork, MappedBuffer::OnWorkDone
uv_default_loop(), uv_req, MappedBuffer::OnWork, (uv_after_work_cb)MappedBuffer::OnWorkDone
);
assert(ret == 0);

Expand Down Expand Up @@ -342,7 +342,7 @@ Handle<Value> MappedBuffer::Sync(const Arguments &args) {
uv_req->data = req;

int32_t ret = uv_queue_work(
uv_default_loop(), uv_req, MappedBuffer::OnWork, MappedBuffer::OnWorkDone
uv_default_loop(), uv_req, MappedBuffer::OnWork, (uv_after_work_cb)MappedBuffer::OnWorkDone
);
assert(ret == 0);

Expand Down

0 comments on commit a72c0ce

Please sign in to comment.