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

ruby-changes:55416

From: tenderlove <ko1@a...>
Date: Sat, 20 Apr 2019 12:00:14 +0900 (JST)
Subject: [ruby-changes:55416] tenderlove:r67625 (trunk): fix strict compile errors

tenderlove	2019-04-20 12:00:08 +0900 (Sat, 20 Apr 2019)

  New Revision: 67625

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

  Log:
    fix strict compile errors

  Modified files:
    trunk/mjit.c
    trunk/mjit_worker.c
Index: mjit_worker.c
===================================================================
--- mjit_worker.c	(revision 67624)
+++ mjit_worker.c	(revision 67625)
@@ -128,7 +128,7 @@ struct rb_mjit_unit { https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L128
     int id;
     // Dlopen handle of the loaded object file.
     void *handle;
-    const rb_iseq_t *iseq;
+    rb_iseq_t *iseq;
 #ifndef _MSC_VER
     // This value is always set for `compact_all_jit_code`. Also used for lazy deletion.
     char *o_file;
Index: mjit.c
===================================================================
--- mjit.c	(revision 67624)
+++ mjit.c	(revision 67625)
@@ -118,7 +118,7 @@ mjit_update_references(const rb_iseq_t * https://github.com/ruby/ruby/blob/trunk/mjit.c#L118
         return;
     CRITICAL_SECTION_START(4, "mjit_free_iseq");
     if (iseq->body->jit_unit) {
-        iseq->body->jit_unit->iseq = (rb_iseq_t *)rb_gc_new_location(iseq->body->jit_unit->iseq);
+        iseq->body->jit_unit->iseq = (rb_iseq_t *)rb_gc_new_location((VALUE)iseq->body->jit_unit->iseq);
     }
     CRITICAL_SECTION_FINISH(4, "mjit_free_iseq");
 }
@@ -236,7 +236,7 @@ create_unit(const rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/mjit.c#L236
         return;
 
     unit->id = current_unit_num++;
-    unit->iseq = iseq;
+    unit->iseq = (rb_iseq_t *)iseq;
     iseq->body->jit_unit = unit;
 }
 

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

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