Skip to content

Commit

Permalink
Cast to uv_fs_t when calling uv_fs_req_cleanup .
Browse files Browse the repository at this point in the history
  • Loading branch information
take-cheeze committed May 2, 2014
1 parent d65d19c commit 6ac972b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mrb_uv.c
Expand Up @@ -76,7 +76,7 @@ mrb_uv_req_free(mrb_state *mrb, void *p)
if (p) {
mrb_uv_req_t *req = (mrb_uv_req_t*)p;
if (req->req.type == UV_FS) {
uv_fs_req_cleanup(&req->req);
uv_fs_req_cleanup((uv_fs_t*)&req->req);
}
mrb_free(mrb, p);
}
Expand Down Expand Up @@ -141,7 +141,7 @@ mrb_uv_req_release(mrb_state *mrb, mrb_value v)

req = (mrb_uv_req_t*)mrb_uv_get_ptr(mrb, v, &req_type);
if (req->req.type == UV_FS) {
uv_fs_req_cleanup(&req->req);
uv_fs_req_cleanup((uv_fs_t*)&req->req);
}
mrb_free(mrb, req);
DATA_PTR(v) = NULL;
Expand Down

0 comments on commit 6ac972b

Please sign in to comment.