summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorU.Nakamura <usa@ruby-lang.org>2021-10-14 10:22:55 +0900
committerU.Nakamura <usa@ruby-lang.org>2021-10-14 10:23:33 +0900
commit3099bb6e3c66ce52e1e2c1c93d4193d415d3c911 (patch)
treed75a1bb1c804e34cfcbd10b90542fdfc2fddccd5 /file.c
parentfa12e3e2f7df205db5f5e179f845c7d758aee86c (diff)
rb_encoding is already const
- this change get rid of a warning of mswin build. see include/ruby/internal/encoding/encoding.h(116)
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 23f81406c6..a22f862db2 100644
--- a/file.c
+++ b/file.c
@@ -4389,7 +4389,7 @@ static VALUE
rb_check_realpath_emulate_try(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