[前][次][番号順一覧][スレッド一覧]

ruby-changes:72721

From: Hiroshi <ko1@a...>
Date: Thu, 28 Jul 2022 19:26:06 +0900 (JST)
Subject: [ruby-changes:72721] d448ecc7b1 (master): Fix the missing brackets

https://git.ruby-lang.org/ruby.git/commit/?id=d448ecc7b1

From d448ecc7b11274e2e5d924a42693788141fad753 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Thu, 28 Jul 2022 19:25:52 +0900
Subject: Fix the missing brackets

---
 test/io/console/test_io_console.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index 342f979ec3..b5382555f5 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -395,7 +395,7 @@ defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L395
         assert_ctrl("#{cc.ord}", cc, r, w)
         assert_ctrl("#{cc.ord}", cc, r, w)
       end
-      if cc = ctrl["lnext"] && /freebsd/ !~ RUBY_PLATFORM
+      if (cc = ctrl["lnext"]) && /freebsd/ !~ RUBY_PLATFORM
         assert_ctrl("#{cc.ord}", cc, r, w)
         assert_ctrl("#{cc.ord}", cc, r, w)
         assert_ctrl("#{cc.ord}", cc, r, w)
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]