diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-08 07:04:45 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-08 07:04:45 +0000 |
commit | 0559227e870c5d0119a6818c5e050be673602f0e (patch) | |
tree | bdff46cdff2cca968bc49203641010715a296a12 /io.c | |
parent | 411e4a6cf2570a0d59cb7a4c52fec22563bcae03 (diff) | |
download | ruby-0559227e870c5d0119a6818c5e050be673602f0e.tar.gz |
* io.c (rb_io_s_sysopen): use NUM2MODET() instead NUM2UINT().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5521,7 +5521,7 @@ rb_io_s_sysopen(int argc, VALUE *argv) oflags = rb_io_modestr_oflags(StringValueCStr(vmode)); } if (NIL_P(vperm)) perm = 0666; - else perm = NUM2UINT(vperm); + else perm = NUM2MODET(vperm); RB_GC_GUARD(fname) = rb_str_new4(fname); fd = rb_sysopen(fname, oflags, perm); |