summaryrefslogtreecommitdiff
path: root/src/node_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_file.cc')
-rw-r--r--src/node_file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_file.cc b/src/node_file.cc
index 96e0ba7e04..dd658e2ecf 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<const char*>(req->path),
+ req->path,
req_wrap->encoding(),
&error);
if (link.IsEmpty())