mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Fix jruby build
https://github.com/rubygems/rubygems/commit/cc255b774a
This commit is contained in:
parent
966915d807
commit
54839f0173
1 changed files with 5 additions and 1 deletions
|
@ -14,8 +14,12 @@ if RUBY_VERSION >= "2.5"
|
|||
|
||||
module_function define_method(:warn) {|*messages, **kw|
|
||||
unless uplevel = kw[:uplevel]
|
||||
if Gem.java_platform?
|
||||
return original_warn.call(*messages)
|
||||
else
|
||||
return original_warn.call(*messages, **kw)
|
||||
end
|
||||
end
|
||||
|
||||
# Ensure `uplevel` fits a `long`
|
||||
uplevel, = [uplevel].pack("l!").unpack("l!")
|
||||
|
|
Loading…
Reference in a new issue