Skip to content

Commit

Permalink
Store FFI::Type::Mapped of FFI::StrPtrConverter in global instead of …
Browse files Browse the repository at this point in the history
…custom type map

The custom type map was prefilled like so before:
{FFI::StrPtrConverter=>#<FFI::Type::Mapped::0x00005587914f66f0 size=8 alignment=8>}
  • Loading branch information
larskanis committed Dec 31, 2023
1 parent 3d4b0d0 commit f2d3846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ffi/types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def self.add_typedef(old, add)

class << self
private def __typedef(old, add)
TypeDefs[add] = self.find_type(old)
TypeDefs[add] = self.find_type(old, TypeDefs)
end

private :custom_typedefs
Expand Down

0 comments on commit f2d3846

Please sign in to comment.