ruby-changes:48760
From: kazu <ko1@a...>
Date: Tue, 21 Nov 2017 21:30:03 +0900 (JST)
Subject: [ruby-changes:48760] kazu:r60875 (trunk): Use `const void*` instead of `const char*`
kazu 2017-11-21 21:29:51 +0900 (Tue, 21 Nov 2017) New Revision: 60875 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60875 Log: 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. Modified files: trunk/dir.c Index: dir.c =================================================================== --- dir.c (revision 60874) +++ dir.c (revision 60875) @@ -504,7 +504,7 @@ static DIR * https://github.com/ruby/ruby/blob/trunk/dir.c#L504 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/