Skip to content

Commit

Permalink
Fix the result of checking the existence of constants being reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Aug 5, 2021
1 parent bda56a0 commit 7bcbee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline/terminfo.rb
Expand Up @@ -33,7 +33,7 @@ def self.curses_dl
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
Expand Down

0 comments on commit 7bcbee3

Please sign in to comment.