mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
cac048a16c
commit
246c986eac
1 changed files with 1 additions and 1 deletions
2
dir.c
2
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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue