ruby-changes:18661
From: kosaki <ko1@a...>
Date: Fri, 28 Jan 2011 11:24:19 +0900 (JST)
Subject: [ruby-changes:18661] Ruby:r30686 (trunk): * io.c (rb_io_open): Use NUM2MODET() instead NUM2UINT().
kosaki 2011-01-28 11:23:58 +0900 (Fri, 28 Jan 2011) New Revision: 30686 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30686 Log: * io.c (rb_io_open): Use NUM2MODET() instead NUM2UINT(). * io.c (rb_scan_open_args): ditto. Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30685) +++ ChangeLog (revision 30686) @@ -1,3 +1,8 @@ +Fri Jan 28 11:23:54 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * io.c (rb_io_open): Use NUM2MODET() instead NUM2UINT(). + * io.c (rb_scan_open_args): ditto. + Fri Jan 28 10:58:20 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * configure.in: Added mode_t type checking. Index: io.c =================================================================== --- io.c (revision 30685) +++ io.c (revision 30686) @@ -5420,7 +5420,7 @@ rb_io_extract_modeenc(&vmode, &vperm, opt, &oflags, &fmode, convconfig_p); - perm = NIL_P(vperm) ? 0666 : NUM2UINT(vperm); + perm = NIL_P(vperm) ? 0666 : NUM2MODET(vperm); *fname_p = fname; *oflags_p = oflags; @@ -5696,7 +5696,7 @@ mode_t perm; rb_io_extract_modeenc(&vmode, &vperm, opt, &oflags, &fmode, &convconfig); - perm = NIL_P(vperm) ? 0666 : NUM2UINT(vperm); + perm = NIL_P(vperm) ? 0666 : NUM2MODET(vperm); if (!NIL_P(cmd = check_pipe_command(filename))) { return pipe_open_s(cmd, rb_io_oflags_modestr(oflags), fmode, &convconfig); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/