diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-25 14:19:57 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-25 14:19:57 +0000 |
commit | 500a5c34acf968b390f17cb65024858c3930d0c6 (patch) | |
tree | 26c0455230f8ee4f28aeeed9b33720ab16cda7a7 /dir.c | |
parent | c7908b19b002ff26b35ff68ba6a21e9e06fd9827 (diff) | |
download | bundler-500a5c34acf968b390f17cb65024858c3930d0c6.tar.gz |
* dir.c (rb_push_glob): need not to check by FilePathValue().
[ruby-dev:29599]
* dir.c (dir_globs): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1497,8 +1497,7 @@ rb_push_glob(VALUE str, int flags) /* '\0' is delimiter */ long offset = 0; VALUE ary; - FilePathValue(str); - + StringValue(str); ary = rb_ary_new(); while (offset < RSTRING_LEN(str)) { @@ -1526,7 +1525,7 @@ dir_globs(long argc, VALUE *argv, int flags) for (i = 0; i < argc; ++i) { int status; VALUE str = argv[i]; - FilePathValue(str); + StringValue(str); status = push_glob(ary, RSTRING_PTR(str), flags); if (status) rb_jump_tag(status); } |