Skip to content

Commit f30d993

Browse files
committed
fix compilation error with some versions of node-0.9
1 parent db2bec7 commit f30d993

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/java.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ JNIEXPORT jobject JNICALL Java_node_NodeDynamicProxyClass_callJs(JNIEnv *env, jo
737737
EIO_AfterCallJs(req);
738738
#endif
739739
} else {
740-
uv_queue_work(uv_default_loop(), req, EIO_CallJs, EIO_AfterCallJs);
740+
uv_queue_work(uv_default_loop(), req, EIO_CallJs, (uv_after_work_cb)EIO_AfterCallJs);
741741

742742
while(!dynamicProxyData->done) {
743743
my_sleep(100);

src/methodCallBaton.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ MethodCallBaton::~MethodCallBaton() {
3030
void MethodCallBaton::run() {
3131
uv_work_t* req = new uv_work_t();
3232
req->data = this;
33-
uv_queue_work(uv_default_loop(), req, MethodCallBaton::EIO_MethodCall, MethodCallBaton::EIO_AfterMethodCall);
33+
uv_queue_work(uv_default_loop(), req, MethodCallBaton::EIO_MethodCall, (uv_after_work_cb)MethodCallBaton::EIO_AfterMethodCall);
3434
}
3535

3636
v8::Handle<v8::Value> MethodCallBaton::runSync() {

0 commit comments

Comments
 (0)