From 8a11e856f1c025c6f3d05c4792611fdd7272205e Mon Sep 17 00:00:00 2001 From: ttate Date: Tue, 8 Mar 2005 10:50:23 +0000 Subject: minor bugfix. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/lib/dl/struct.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit