diff options
Diffstat (limited to 'ext/dl/lib/dl/struct.rb')
-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 d3107fcf50..2f54019294 100644 --- a/ext/dl/lib/dl/struct.rb +++ b/ext/dl/lib/dl/struct.rb @@ -128,7 +128,7 @@ module DL else raise(RuntimeError, "invalid element: #{elem}") end - _,_,_,ty,enc,dec = @types.encode_type(ty) + ty,enc,dec = @types.encode_struct_type(ty) if( !ty ) raise(TypeError, "unsupported type: #{ty}") end |