summaryrefslogtreecommitdiffstats
path: root/ext/dl
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
commit8a11e856f1c025c6f3d05c4792611fdd7272205e (patch)
treee7e80a4bb635f413bff7f23baedcfad3ee7b53b1 /ext/dl
parent664342a30b6b156f331e2803d1912ef36a4ed977 (diff)
downloadruby-8a11e856f1c025c6f3d05c4792611fdd7272205e.tar.gz
ruby-8a11e856f1c025c6f3d05c4792611fdd7272205e.tar.xz
ruby-8a11e856f1c025c6f3d05c4792611fdd7272205e.zip
minor bugfix.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-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 5c0775277..0bdc25a87 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