From 7bcbee37b5feda172b1651b34a5c3d058db04611 Mon Sep 17 00:00:00 2001 From: aycabta Date: Fri, 6 Aug 2021 02:51:10 +0900 Subject: [PATCH] Fix the result of checking the existence of constants being reversed --- lib/reline/terminfo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reline/terminfo.rb b/lib/reline/terminfo.rb index 811f740229..79f3f1de8e 100644 --- a/lib/reline/terminfo.rb +++ b/lib/reline/terminfo.rb @@ -33,7 +33,7 @@ module Reline::Terminfo else fiddle_supports_variadic = false end - if fiddle_supports_variadic and Fiddle.const_defined?(:TYPE_VARIADIC) + if fiddle_supports_variadic and not Fiddle.const_defined?(:TYPE_VARIADIC) # If the libffi version is not 3.0.5 or higher, there isn't TYPE_VARIADIC. fiddle_supports_variadic = false end