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

ruby-changes:51150

From: ko1 <ko1@a...>
Date: Tue, 8 May 2018 15:54:06 +0900 (JST)
Subject: [ruby-changes:51150] ko1:r63357 (trunk): fix type mismatch.

ko1	2018-05-08 15:53:54 +0900 (Tue, 08 May 2018)

  New Revision: 63357

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

  Log:
    fix type mismatch.
    
    * cont.c (fiber_context_create): `func` should accept variable args.

  Modified files:
    trunk/cont.c
Index: cont.c
===================================================================
--- cont.c	(revision 63356)
+++ cont.c	(revision 63357)
@@ -143,7 +143,7 @@ enum fiber_status { https://github.com/ruby/ruby/blob/trunk/cont.c#L143
 
 #if FIBER_USE_NATIVE && !defined(_WIN32)
 static inline void
-fiber_context_create(ucontext_t *context, void (*func)(void *), void *arg, void *ptr, size_t size)
+fiber_context_create(ucontext_t *context, void (*func)(), void *arg, void *ptr, size_t size)
 {
     getcontext(context);
     context->uc_link = NULL;

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

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