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

ruby-changes:41775

From: nobu <ko1@a...>
Date: Wed, 17 Feb 2016 11:54:26 +0900 (JST)
Subject: [ruby-changes:41775] nobu:r53849 (trunk): numeric.c: adjust types

nobu	2016-02-17 11:54:50 +0900 (Wed, 17 Feb 2016)

  New Revision: 53849

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

  Log:
    numeric.c: adjust types
    
    * numeric.c (coerce_rescue, coerce_rescue_quiet): rescue functions
      should have errinfo too.

  Modified files:
    trunk/numeric.c
Index: numeric.c
===================================================================
--- numeric.c	(revision 53848)
+++ numeric.c	(revision 53849)
@@ -260,7 +260,7 @@ coerce_failed(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/numeric.c#L260
 }
 
 static VALUE
-coerce_rescue(VALUE arg)
+coerce_rescue(VALUE arg, VALUE errinfo)
 {
     VALUE *x = (VALUE *)arg;
     coerce_failed(x[0], x[1]);
@@ -268,7 +268,7 @@ coerce_rescue(VALUE arg) https://github.com/ruby/ruby/blob/trunk/numeric.c#L268
 }
 
 static VALUE
-coerce_rescue_quiet(VALUE arg)
+coerce_rescue_quiet(VALUE arg, VALUE errinfo)
 {
     return Qundef;
 }

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

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