diff options
author | Lars Kanis <lars@greiz-reinsdorf.de> | 2020-12-13 19:26:31 +0100 |
---|---|---|
committer | Lars Kanis <lars@greiz-reinsdorf.de> | 2020-12-13 19:26:31 +0100 |
commit | b7cc0a8122cbac5ae9df417ad0299457dba48a63 (patch) | |
tree | b85b0645f367013d6d84722a93eaa4dd71818081 /spec | |
parent | 2b44904f8323dcad3eaa978c1fd2b5298bd04663 (diff) | |
download | ffi-b7cc0a8122cbac5ae9df417ad0299457dba48a63.tar.gz |
Move Pointer#size_limit? to AbstractMemory and from C to ruby
Since size is defined in AbstractMemory, size_limit? should be there as well.
Moving to Ruby code ensures that it works on JRuby and Truffleruby.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ffi/pointer_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ffi/pointer_spec.rb b/spec/ffi/pointer_spec.rb index f75d28d..b216a16 100644 --- a/spec/ffi/pointer_spec.rb +++ b/spec/ffi/pointer_spec.rb @@ -236,7 +236,7 @@ describe "Pointer" do it "should have size limit" do expect(FFI::Pointer.new(0).slice(0, 10).size_limit?).to be true end - end if RUBY_ENGINE != "truffleruby" + end end describe "AutoPointer" do |