Skip to content

Commit 7b0930d

Browse files
committed
Fix type stability of getndof
1 parent 3022a9f commit 7b0930d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flatten.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ _fieldvals(x::Tuple) = x
88
end
99

1010

11-
getndof(x::Real) where {T} = static(1)
11+
getndof(x::Real) = static(1)
1212
getndof(x::Tuple{}) = static(0)
1313
getndof(x::NTuple{N,Real}) where N = static(N)
1414
getndof(x::T) where {T} = sum(map(getndof, _fieldvals(x)))

0 commit comments

Comments
 (0)