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

ruby-changes:40063

From: nobu <ko1@a...>
Date: Sat, 17 Oct 2015 13:07:52 +0900 (JST)
Subject: [ruby-changes:40063] nobu:r52144 (trunk): vm_insnhelper.c: suppress a warning

nobu	2015-10-17 13:07:46 +0900 (Sat, 17 Oct 2015)

  New Revision: 52144

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

  Log:
    vm_insnhelper.c: suppress a warning
    
    * vm_insnhelper.c (vm_yield_with_cfunc): cast to suppress a
      warning by VC.

  Modified files:
    trunk/vm_insnhelper.c
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 52143)
+++ vm_insnhelper.c	(revision 52144)
@@ -2320,7 +2320,7 @@ vm_yield_with_cfunc(rb_thread_t *th, con https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L2320
 	data = SYM2ID((VALUE)ifunc);
     }
     else {
-	func = ifunc->func;
+	func = (rb_block_call_func *)ifunc->func;
 	data = (VALUE)ifunc->data;
     }
     val = (*func)(arg, data, argc, argv, blockarg);

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

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