mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
dir.c: cast to suppress a warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
42727ceb19
commit
bfbf5b0b3e
1 changed files with 1 additions and 1 deletions
2
dir.c
2
dir.c
|
@ -1275,7 +1275,7 @@ dir_s_rmdir(VALUE obj, VALUE dir)
|
|||
|
||||
dir = check_dirname(dir);
|
||||
p = RSTRING_PTR(dir);
|
||||
r = (int)(VALUE)rb_thread_call_without_gvl(nogvl_rmdir, p, RUBY_UBF_IO, 0);
|
||||
r = (int)(VALUE)rb_thread_call_without_gvl(nogvl_rmdir, (void *)p, RUBY_UBF_IO, 0);
|
||||
if (r < 0)
|
||||
rb_sys_fail_path(dir);
|
||||
|
||||
|
|
Loading…
Reference in a new issue