mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix the result of checking the existence of constants being reversed
This commit is contained in:
parent
bda56a03a6
commit
7bcbee37b5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue