1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/fiddle/lib/fiddle/struct.rb (Fiddle::CStructEntity#set_ctypes):

CPtr -> Pointer.
* test/fiddle/test_c_struct_entry.rb
  (Fiddle::TestCStructEntity#test_aref_pointer):
  Added the test for the above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2012-12-21 14:16:02 +00:00
parent e852838cee
commit 8346f7b2ad
3 changed files with 18 additions and 1 deletions

View file

@ -168,7 +168,7 @@ module Fiddle
val = val.collect{|v| Pointer.new(v)}
end
when TYPE_VOIDP
val = CPtr.new(val[0])
val = Pointer.new(val[0])
else
val = val[0]
end