diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dl/lib/dl/struct.rb | 2 |
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 |