summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-10 03:14:52 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-10 03:14:52 +0000
commit107b713438a54770d68be98f3c385e77aecd056e (patch)
tree075cd0fdc4cf858973ace07eb2dbe45a71182a3a
parent7ef154f83313316d8096a89057c89090283ec66e (diff)
* 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
-rw-r--r--ChangeLog5
-rw-r--r--ext/readline/readline.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 345a98b..aa1c25c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jan 10 12:13:56 2012 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * ext/readline/readline.c (readline_attempted_completion_function):
+ fix compile error.
+
Tue Jan 10 10:41:11 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/readline/readline.c (readline_attempted_completion_function):
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index c3c23e4..d00fc04 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;