summaryrefslogtreecommitdiff
path: root/ext/dl/lib/dl/struct.rb
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-08 10:50:23 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-08 10:50:23 +0000
commit215cd35df9cca5e3003106bf6a85a65a5e72d5a9 (patch)
treee7e80a4bb635f413bff7f23baedcfad3ee7b53b1 /ext/dl/lib/dl/struct.rb
parent6f70f54e1df721ed7b6cdc5d04b34077bfc583bb (diff)
minor bugfix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/lib/dl/struct.rb')
-rw-r--r--ext/dl/lib/dl/struct.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/lib/dl/struct.rb b/ext/dl/lib/dl/struct.rb
index 5c0775277e..0bdc25a879 100644
--- a/ext/dl/lib/dl/struct.rb
+++ b/ext/dl/lib/dl/struct.rb
@@ -163,7 +163,7 @@ module DL
class CUnionEntity < CStruct
include PackInfo
- def CUnionEntity.malloc(types)
+ def CUnionEntity.malloc(types, func=nil)
addr = DL.malloc(CUnionEntity.size(types))
CUnionEntity.new(addr, types, func)
end