Skip to content

Commit c0c5d48

Browse files
committed
Work around inference failure in promotion on nightly
1 parent e9fc79a commit c0c5d48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FixedPointNumbers.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,8 @@ function promote_rule(::Type{X1}, ::Type{X2}) where {T1, f1, X1 <: FixedPoint{T1
540540
m = max(nbitsint(X1), nbitsint(X2))
541541
_widen_rawtype(X{T,f}, m)
542542
end
543-
544-
function _widen_rawtype(::Type{X}, m) where {T, f, X<:FixedPoint{T,f}}
543+
# TODO: avoid using @pure
544+
@pure function _widen_rawtype(::Type{X}, m) where {T, f, X<:FixedPoint{T,f}}
545545
nbitsint(X) >= m && return X
546546
Tw = widen1(T)
547547
T === Tw && return X

0 commit comments

Comments
 (0)