ruby-changes:55731
From: Nobuyoshi <ko1@a...>
Date: Wed, 15 May 2019 18:19:41 +0900 (JST)
Subject: [ruby-changes:55731] Nobuyoshi Nakada: 214e2f93aa (trunk): Fix the warning in 456586bb234915107da255d2944f620a7dd7048b
https://git.ruby-lang.org/ruby.git/commit/?id=214e2f93aa From 214e2f93aa6b0810353b67f320dab6aa63a97169 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 15 May 2019 18:18:44 +0900 Subject: Fix the warning in 456586bb234915107da255d2944f620a7dd7048b diff --git a/ext/io/console/console.c b/ext/io/console/console.c index f10b1e4..c378726 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) https://github.com/ruby/ruby/blob/trunk/ext/io/console/console.c#L425 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"); } } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/