mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
minor bugfix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6f70f54e1d
commit
215cd35df9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue