summaryrefslogtreecommitdiff
path: root/ext/fiddle
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-21 14:12:57 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-21 14:12:57 +0000
commite852838cee777cfc9c6e3f8f16142d4809422179 (patch)
treee66f9be3d0ca74af6e7bda8678f38cb3840b3acc /ext/fiddle
parent3fed8bc9a5c924c43aef32098ebd201d0ab6af76 (diff)
* ext/fiddle/lib/fiddle/struct.rb (Fiddle::CStructEntity#set_ctypes):
CPtr -> Pointer. * test/fiddle/test_c_struct_entry.rb (Fiddle::TestCStructEntity#test_aref_pointer_array): Added the test for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle')
-rw-r--r--ext/fiddle/lib/fiddle/struct.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/lib/fiddle/struct.rb b/ext/fiddle/lib/fiddle/struct.rb
index 5a70699..ef53522 100644
--- a/ext/fiddle/lib/fiddle/struct.rb
+++ b/ext/fiddle/lib/fiddle/struct.rb
@@ -165,7 +165,7 @@ module Fiddle
when Array
case ty[0]
when TYPE_VOIDP
- val = val.collect{|v| CPtr.new(v)}
+ val = val.collect{|v| Pointer.new(v)}
end
when TYPE_VOIDP
val = CPtr.new(val[0])