1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rb_encoding is already const

- this change get rid of a warning of mswin build.
  see include/ruby/internal/encoding/encoding.h(116)
This commit is contained in:
U.Nakamura 2021-10-14 10:22:55 +09:00
parent fa12e3e2f7
commit 3099bb6e3c

2
file.c
View file

@ -4389,7 +4389,7 @@ static VALUE
rb_check_realpath_emulate_try(VALUE arg) rb_check_realpath_emulate_try(VALUE arg)
{ {
VALUE *args = (VALUE *)arg; VALUE *args = (VALUE *)arg;
return rb_check_realpath_emulate(args[0], args[1], (const rb_encoding *)args[2], RB_REALPATH_CHECK); return rb_check_realpath_emulate(args[0], args[1], (rb_encoding *)args[2], RB_REALPATH_CHECK);
} }
static VALUE static VALUE