From 06e52ba57b62d2661b4cab842b583fb4137e44de Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 18 Sep 2009 14:59:29 +0000 Subject: * 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 --- dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index 55c1608c5e..293386349e 100644 --- a/dir.c +++ b/dir.c @@ -343,7 +343,7 @@ static VALUE dir_close(VALUE); /* can contain null bytes as separators */ \ (!RB_TYPE_P(str, T_STRING) ? \ FilePathValue(str) : \ - (safe) ? rb_check_safe_obj(str) : (str)) + (safe) ? (rb_check_safe_obj(str), (str)) : (str)) static VALUE dir_s_alloc(VALUE klass) -- cgit v1.2.3