Skip to content

Commit

Permalink
avoid call-site inlining (fix for julia 1.6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Aug 4, 2023
1 parent 7edf68f commit 08a4888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/variable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ load!(ds["temp"].var,data,:,1) # loads the 1st column
julia `Char` type uses 4 bytes and the NetCDF `NC_CHAR` only 1 byte.
"""
@inline function load!(ncvar::Variable{T,N}, data::AbstractArray{T}, indices::Union{Integer, UnitRange, StepRange, Colon}...) where {T,N}
@inline unsafe_load!(ncvar, data, indices...)
unsafe_load!(ncvar, data, indices...)
end

@inline function load!(ncvar::Variable{Char,N}, data::AbstractArray{UInt8}, indices::Union{Integer, UnitRange, StepRange, Colon}...) where N
@inline unsafe_load!(ncvar, data, indices...)
unsafe_load!(ncvar, data, indices...)
end

@inline function load!(ncvar::Variable{T,2}, data::AbstractArray{T}, i::Colon,j::UnitRange) where T
Expand Down

0 comments on commit 08a4888

Please sign in to comment.