From 107b713438a54770d68be98f3c385e77aecd056e Mon Sep 17 00:00:00 2001 From: kazu Date: Tue, 10 Jan 2012 03:14:52 +0000 Subject: * ext/readline/readline.c (readline_attempted_completion_function): fix compile error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/readline/readline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/readline/readline.c b/ext/readline/readline.c index c3c23e4f0a..d00fc049ac 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -667,7 +667,7 @@ readline_attempted_completion_function(const char *text, int start, int end) #endif case_fold = RTEST(rb_attr_get(mReadline, completion_case_fold)); ary = rb_funcall(proc, rb_intern("call"), 1, rb_locale_str_new_cstr(text)); - if (!RB_TYPE_P(ary, T_ARRAY)) { + if (!RB_TYPE_P(ary, T_ARRAY)) ary = rb_Array(ary); matches = RARRAY_LEN(ary); if (matches == 0) return NULL; -- cgit v1.2.3