mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
compile.c: cast iseqs to suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d099eabbb7
commit
9e448d2fd7
1 changed files with 2 additions and 2 deletions
|
@ -574,7 +574,7 @@ static int
|
|||
iseq_add_mark_object_compile_time(const rb_iseq_t *iseq, VALUE v)
|
||||
{
|
||||
if (!SPECIAL_CONST_P(v)) {
|
||||
rb_gc_writebarrier(iseq, v);
|
||||
rb_gc_writebarrier((VALUE)iseq, v);
|
||||
rb_ary_push(ISEQ_COMPILE_DATA(iseq)->mark_ary, v);
|
||||
}
|
||||
return COMPILE_OK;
|
||||
|
@ -584,7 +584,7 @@ static inline VALUE
|
|||
freeze_literal(rb_iseq_t *iseq, VALUE lit)
|
||||
{
|
||||
lit = rb_fstring(lit);
|
||||
rb_gc_writebarrier(iseq, lit);
|
||||
rb_gc_writebarrier((VALUE)iseq, lit);
|
||||
rb_ary_push(ISEQ_COMPILE_DATA(iseq)->mark_ary, lit);
|
||||
return lit;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue