From 08a4888c4e73220f6df2a33fb96a7a50ee0515f0 Mon Sep 17 00:00:00 2001 From: Alexander Barth Date: Fri, 4 Aug 2023 15:20:28 +0200 Subject: [PATCH] avoid call-site inlining (fix for julia 1.6) --- src/variable.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/variable.jl b/src/variable.jl index e294f9ee..0c2fdaab 100644 --- a/src/variable.jl +++ b/src/variable.jl @@ -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