diff --git a/src/node_file.cc b/src/node_file.cc index 960fd052e88014..dc72a8e2a37360 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -555,7 +555,7 @@ void AfterStringPath(uv_fs_t* req) { if (after.Proceed()) { link = StringBytes::Encode(req_wrap->env()->isolate(), - static_cast(req->path), + req->path, req_wrap->encoding(), &error); if (link.IsEmpty())