summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Kanis <lars@greiz-reinsdorf.de>2021-07-09 06:40:24 +0200
committerLars Kanis <lars@greiz-reinsdorf.de>2021-07-09 06:40:24 +0200
commit0dbbe5ebcf77473529eb4c9b2f91973aec5abb8d (patch)
treeb7f8a2c681a12ed897c4007842910aff22c136ce
parent1880a7182e37e7b1d14b1464eaec76d1ce2407d7 (diff)
downloadffi-0dbbe5ebcf77473529eb4c9b2f91973aec5abb8d.tar.gz
Lower the JRuby version guard to 9.2.20
FFI improvments will probably backported to 9.2 branch. See https://github.com/jruby/jruby/pull/6747#issuecomment-876610443
-rw-r--r--lib/ffi.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ffi.rb b/lib/ffi.rb
index 4c59462..3fb20a8 100644
--- a/lib/ffi.rb
+++ b/lib/ffi.rb
@@ -7,7 +7,7 @@ if RUBY_ENGINE == 'ruby'
require 'ffi/ffi'
-elsif RUBY_ENGINE == 'jruby' && (RUBY_ENGINE_VERSION.split('.').map(&:to_i) <=> [9, 3]) >= 0
+elsif RUBY_ENGINE == 'jruby' && (RUBY_ENGINE_VERSION.split('.').map(&:to_i) <=> [9, 2, 20]) >= 0
JRuby::Util.load_ext("org.jruby.ext.ffi.FFIService")
require 'ffi/ffi'