summaryrefslogtreecommitdiff
path: root/eval_intern.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-13 17:20:11 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-13 17:20:11 (GMT)
commitdd4cec36ca0229e5dcc45393f59f2633d2e350bf (patch)
tree103742b8a708b0ffe530370e3a5f124ca7f64b68 /eval_intern.h
parent6687b34876a2677bb1d7288de82376960fb35ec7 (diff)
* method.h: constify rb_cref_t::scope_visi;
* eval_intern.h (CREF_SCOPE_VISI_COPY): catch up this fix. * vm_method.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_intern.h')
-rw-r--r--eval_intern.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_intern.h b/eval_intern.h
index 6b5ca7f..d78bb39 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -216,7 +216,7 @@ static inline void
CREF_SCOPE_VISI_COPY(rb_cref_t *dst_cref, const rb_cref_t *src_cref)
{
const rb_scope_visibility_t *src = &src_cref->scope_visi;
- rb_scope_visibility_t *dst = &dst_cref->scope_visi;
+ rb_scope_visibility_t *dst = (rb_scope_visibility_t *)&dst_cref->scope_visi; /* OK for const cast */
dst->method_visi = src->method_visi;
dst->module_func = src->module_func;