1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* dir.c (GlobPathValue): adjust return types. based on a patch

from Naohisa Goto at [ruby-dev:39350].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-09-18 14:59:29 +00:00
parent 1aa21e630f
commit 06e52ba57b
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Fri Sep 18 23:59:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c (GlobPathValue): adjust return types. based on a patch
from Naohisa Goto at [ruby-dev:39350].
Fri Sep 18 23:51:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> Fri Sep 18 23:51:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* marshal.c (r_object0): entry regexp object before its encoding * marshal.c (r_object0): entry regexp object before its encoding

2
dir.c
View file

@ -343,7 +343,7 @@ static VALUE dir_close(VALUE);
/* can contain null bytes as separators */ \ /* can contain null bytes as separators */ \
(!RB_TYPE_P(str, T_STRING) ? \ (!RB_TYPE_P(str, T_STRING) ? \
FilePathValue(str) : \ FilePathValue(str) : \
(safe) ? rb_check_safe_obj(str) : (str)) (safe) ? (rb_check_safe_obj(str), (str)) : (str))
static VALUE static VALUE
dir_s_alloc(VALUE klass) dir_s_alloc(VALUE klass)