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

ruby-changes:44474

From: nobu <ko1@a...>
Date: Thu, 3 Nov 2016 14:47:02 +0900 (JST)
Subject: [ruby-changes:44474] nobu:r56547 (trunk): file.c: use DEVT2NUM

nobu	2016-11-03 14:46:55 +0900 (Thu, 03 Nov 2016)

  New Revision: 56547

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

  Log:
    file.c: use DEVT2NUM
    
    * file.c (rb_stat_dev_major, rb_stat_dev_minor): use DEVT2NUM as
      well as rdev_major and rdev_minor.

  Modified files:
    trunk/file.c
Index: file.c
===================================================================
--- file.c	(revision 56546)
+++ file.c	(revision 56547)
@@ -500,7 +500,7 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/file.c#L500
 rb_stat_dev_major(VALUE self)
 {
 #if defined(major)
-    return INT2NUM(major(get_stat(self)->st_dev));
+    return DEVT2NUM(major(get_stat(self)->st_dev));
 #else
     return Qnil;
 #endif
@@ -521,7 +521,7 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/file.c#L521
 rb_stat_dev_minor(VALUE self)
 {
 #if defined(minor)
-    return INT2NUM(minor(get_stat(self)->st_dev));
+    return DEVT2NUM(minor(get_stat(self)->st_dev));
 #else
     return Qnil;
 #endif

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

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