summaryrefslogtreecommitdiff
path: root/ext/io/console
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-15 18:18:44 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-15 18:19:23 +0900
commit214e2f93aa6b0810353b67f320dab6aa63a97169 (patch)
tree071add90b92003758a3d147cc744162d3dd231cb /ext/io/console
parent3cf767ee35060d7d261f47399a7d717256d0f237 (diff)
Fix the warning in 456586bb234915107da255d2944f620a7dd7048b
Diffstat (limited to 'ext/io/console')
-rw-r--r--ext/io/console/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index f10b1e4a159..c378726dd5f 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -425,7 +425,7 @@ console_getch(int argc, VALUE *argv, VALUE io)
tv.tv_sec = optp->vtime / 10;
tv.tv_usec = (optp->vtime % 10) * 100000;
}
- if (optp->vmin) {
+ if (optp->vmin != 1) {
rb_warning("min option ignored");
}
}