Skip to content

Commit

Permalink
Fix method ambiguities on 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Mar 7, 2024
1 parent 9f8224d commit 85c8eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bindings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2682,7 +2682,7 @@ mutable struct sftp_packet_struct
type::UInt8
payload::ssh_buffer
end
Base.unsafe_convert(::Type{Ptr{__JL_sftp_packet_struct}}, x::Ref{sftp_packet_struct}) = Base.unsafe_convert(Ptr{__JL_sftp_packet_struct}, Base.unsafe_convert(Ptr{sftp_packet_struct}, x))
Base.unsafe_convert(::Type{Ptr{__JL_sftp_packet_struct}}, x::Base.RefValue{sftp_packet_struct}) = Base.unsafe_convert(Ptr{__JL_sftp_packet_struct}, Base.unsafe_convert(Ptr{sftp_packet_struct}, x))

Base.unsafe_convert(::Type{Ptr{__JL_sftp_packet_struct}}, x::Ptr{sftp_packet_struct}) = Ptr{__JL_sftp_packet_struct}(x)

Expand All @@ -2691,7 +2691,7 @@ mutable struct sftp_request_queue_struct
next::sftp_request_queue
message::sftp_message
end
Base.unsafe_convert(::Type{Ptr{__JL_sftp_request_queue_struct}}, x::Ref{sftp_request_queue_struct}) = Base.unsafe_convert(Ptr{__JL_sftp_request_queue_struct}, Base.unsafe_convert(Ptr{sftp_request_queue_struct}, x))
Base.unsafe_convert(::Type{Ptr{__JL_sftp_request_queue_struct}}, x::Base.RefValue{sftp_request_queue_struct}) = Base.unsafe_convert(Ptr{__JL_sftp_request_queue_struct}, Base.unsafe_convert(Ptr{sftp_request_queue_struct}, x))

Base.unsafe_convert(::Type{Ptr{__JL_sftp_request_queue_struct}}, x::Ptr{sftp_request_queue_struct}) = Ptr{__JL_sftp_request_queue_struct}(x)

Expand Down

0 comments on commit 85c8eb5

Please sign in to comment.