summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-11 06:35:48 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-11 06:35:48 +0000
commit96d0ef6670ca18f94fa14057a36e32e3712ad85b (patch)
tree46072ca0bed2601d7ab94a924ab914971d2dbb3a
parent38698dbbe365c3ca2955ce4ecdc4dca340806fef (diff)
Support "unsigned short".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/dl/lib/dl/struct.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/dl/lib/dl/struct.rb b/ext/dl/lib/dl/struct.rb
index eb727762ae..131322d349 100644
--- a/ext/dl/lib/dl/struct.rb
+++ b/ext/dl/lib/dl/struct.rb
@@ -43,6 +43,10 @@ module DL
].join("\n")
}
end
+
+ def to_ptr
+ return @ptr
+ end
end
class Struct