summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-21 12:29:51 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-21 12:29:51 (GMT)
commit246c986eac342ae7bbf05f3be97c92fc71f9d21d (patch)
tree5c5f6948be84c3ec81928de0f611e727804fd873 /dir.c
parentcac048a16c83fa2e0ace6ddb1b9d6319c2def1b6 (diff)
Use `const void*` instead of `const char*`
Use cast from `char*` to `void*` instead of union in opendir_without_gvl, because convert from `void*` to `char*` without union in nogvl_opendir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index eecbfe2..311cd54 100644
--- a/dir.c
+++ b/dir.c
@@ -504,7 +504,7 @@ static DIR *
opendir_without_gvl(const char *path)
{
if (vm_initialized) {
- union { const char *in; void *out; } u;
+ union { const void *in; void *out; } u;
u.in = path;