1
0
Fork 0
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:
aycabta 2021-08-06 02:51:10 +09:00
parent bda56a03a6
commit 7bcbee37b5

View file

@ -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