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

ruby-changes:45099

From: nobu <ko1@a...>
Date: Sat, 24 Dec 2016 21:21:56 +0900 (JST)
Subject: [ruby-changes:45099] nobu:r57172 (trunk): time.c: fix type of usec2subsecx

nobu	2016-12-24 21:21:52 +0900 (Sat, 24 Dec 2016)

  New Revision: 57172

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

  Log:
    time.c: fix type of usec2subsecx
    
    * time.c (usec2subsecx): fix return type, which is a numeric
      object but not a long int.  [ruby-dev:49912] [Bug #13066]

  Modified files:
    trunk/time.c
Index: time.c
===================================================================
--- time.c	(revision 57171)
+++ time.c	(revision 57172)
@@ -2445,7 +2445,7 @@ obj2subsecx(VALUE obj, VALUE *subsecx) https://github.com/ruby/ruby/blob/trunk/time.c#L2445
     return obj2ubits(obj, 6); /* vtm->sec */
 }
 
-static long
+static VALUE
 usec2subsecx(VALUE obj)
 {
     if (RB_TYPE_P(obj, T_STRING)) {

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

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