Fix handleRequestError casting uv_fs_t::data to the wrong type

This commit is contained in:
Rohan Singh
2015-11-18 23:23:48 -05:00
parent 8d63667ce2
commit 2708b0c7ae

View File

@ -77,7 +77,8 @@ static bool handleRequestError(uv_fs_t* request)
{
if (request->result >= 0) return false;
WrenValue* fiber = (WrenValue*)request->data;
FileReqData* reqData = (FileReqData*)request->data;
WrenValue* fiber = (WrenValue*)reqData->fiber;
schedulerResumeError(fiber, uv_strerror((int)request->result));
uv_fs_req_cleanup(request);
free(request);