From 215cd35df9cca5e3003106bf6a85a65a5e72d5a9 Mon Sep 17 00:00:00 2001 From: ttate Date: Tue, 8 Mar 2005 10:50:23 +0000 Subject: minor bugfix. git-svn-id: svn+ssh://ci.ruby-lang.org/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 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 -- cgit v1.2.3