Skip to content

Commit 08a4888

Browse files
avoid call-site inlining (fix for julia 1.6)
1 parent 7edf68f commit 08a4888

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/variable.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ load!(ds["temp"].var,data,:,1) # loads the 1st column
138138
julia `Char` type uses 4 bytes and the NetCDF `NC_CHAR` only 1 byte.
139139
"""
140140
@inline function load!(ncvar::Variable{T,N}, data::AbstractArray{T}, indices::Union{Integer, UnitRange, StepRange, Colon}...) where {T,N}
141-
@inline unsafe_load!(ncvar, data, indices...)
141+
unsafe_load!(ncvar, data, indices...)
142142
end
143143

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

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

0 commit comments

Comments
 (0)