ruby-changes:48731
From: normal <ko1@a...>
Date: Sun, 19 Nov 2017 14:23:53 +0900 (JST)
Subject: [ruby-changes:48731] normal:r60847 (trunk): file.c (rb_file_s_mkfifo): use mode_t instead of int
normal 2017-11-19 14:23:48 +0900 (Sun, 19 Nov 2017) New Revision: 60847 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60847 Log: file.c (rb_file_s_mkfifo): use mode_t instead of int mode_t is the correct type for mkfifo(3). This fixes an oversight from r60592 which made the same change to several other functions. * file.c (rb_file_s_mkfifo): use mode_t instead of int Modified files: trunk/file.c Index: file.c =================================================================== --- file.c (revision 60846) +++ file.c (revision 60847) @@ -5766,11 +5766,11 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/file.c#L5766 rb_file_s_mkfifo(int argc, VALUE *argv) { VALUE path; - int mode = 0666; + mode_t mode = 0666; rb_check_arity(argc, 1, 2); if (argc > 1) { - mode = NUM2INT(argv[1]); + mode = NUM2MODET(argv[1]); } path = argv[0]; FilePathValue(path); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/