Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55862c8

Browse files
authored
Merge pull request#81 from martinkosch/master
Bugfix in Base.getindex(::Cptr, ::Integer)
2 parentsa71e325 +aa367c6 commit55862c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/pointers.jl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Base.unsafe_string(ptr::Cptr{T}) where {C<:Union{Cchar, Cuchar}, T<:Cqualifiers{
5353
Base.unsafe_string(ptr::Cptr{T}, length::Integer)where {C<:Union{Cchar, Cuchar}, T<:Cqualifiers{C}}=unsafe_string(Core.Intrinsics.bitcast(Ptr{C}, ptr), length)
5454

5555
Base.getindex(ptr::Cptr{T})where {T}=unsafe_load(ptr)
56-
Base.getindex(ptr::Cptr{T}, i::Integer)where {T}=unsafe_load!(ptr, val, i)
56+
Base.getindex(ptr::Cptr{T}, i::Integer)where {T}=unsafe_load(ptr, i)
5757
Base.setindex!(ptr::Cptr{T}, val)where {T}=unsafe_store!(ptr, val)
5858
Base.setindex!(ptr::Cptr{T}, val, i::Integer)where {T}=unsafe_store!(ptr, val, i)
5959

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp