summaryrefslogtreecommitdiff
path: root/ext/fiddle
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-21 14:16:02 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-21 14:16:02 +0000
commit8346f7b2ad3138bdc30c8b39c8de13f3b392c059 (patch)
tree2812a9812d5b2a78b21dc2279b0b15a9107461fc /ext/fiddle
parente852838cee777cfc9c6e3f8f16142d4809422179 (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): Added the test for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38538 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 ef53522..695a4d2 100644
--- a/ext/fiddle/lib/fiddle/struct.rb
+++ b/ext/fiddle/lib/fiddle/struct.rb
@@ -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