[前][次][番号順一覧][スレッド一覧]

ruby-changes:55283

From: nobu <ko1@a...>
Date: Wed, 10 Apr 2019 10:18:06 +0900 (JST)
Subject: [ruby-changes:55283] nobu:r67490 (trunk): compile.c: cast iseqs to suppress warnings

nobu	2019-04-10 10:18:01 +0900 (Wed, 10 Apr 2019)

  New Revision: 67490

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67490

  Log:
    compile.c: cast iseqs to suppress warnings

  Modified files:
    trunk/compile.c
Index: compile.c
===================================================================
--- compile.c	(revision 67489)
+++ compile.c	(revision 67490)
@@ -574,7 +574,7 @@ static int https://github.com/ruby/ruby/blob/trunk/compile.c#L574
 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 https://github.com/ruby/ruby/blob/trunk/compile.c#L584
 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;
 }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]