Skip to content

Commit b1202f0

Browse files
committed
ensure Val constructors always inlined
1 parent c4c9b33 commit b1202f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/operators.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,8 +1206,8 @@ struct Fix{F,N,T<:Tuple} <: Function
12061206
Fix(f::Type{F}, ::Val{N}, x, xs...) where {F,N} = (xt=(x, xs...); new{F,N,_stable_typeof(xt)}(f, xt))
12071207
end
12081208

1209-
Fix(f::F, n::Int, x, xs...) where {F} = Fix(f, Val(n), x, xs...)
1210-
Fix(f::Type{F}, n::Int, x, xs...) where {F} = Fix(f, Val(n), x, xs...)
1209+
@inline Fix(f::F, n::Int, x, xs...) where {F} = Fix(f, Val(n), x, xs...)
1210+
@inline Fix(f::Type{F}, n::Int, x, xs...) where {F} = Fix(f, Val(n), x, xs...)
12111211

12121212
function (f::Fix{F,N,T})(args::Vararg{Any,M}) where {F,N,T,M}
12131213
@inline

0 commit comments

Comments
 (0)