Skip to content

Commit ca32586

Browse files
authored
Revert "Work around inference failure in promotion on nightly (#249)"
This reverts commit 277a3e4.
1 parent 3a4346c commit ca32586

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
@@ -539,8 +539,8 @@ function promote_rule(::Type{X1}, ::Type{X2}) where {T1, f1, X1 <: FixedPoint{T1
539539
m = max(nbitsint(X1), nbitsint(X2))
540540
_widen_rawtype(X{T,f}, m)
541541
end
542-
# TODO: avoid using @pure
543-
@pure function _widen_rawtype(::Type{X}, m) where {T, f, X<:FixedPoint{T,f}}
542+
543+
function _widen_rawtype(::Type{X}, m) where {T, f, X<:FixedPoint{T,f}}
544544
nbitsint(X) >= m && return X
545545
Tw = widen1(T)
546546
T === Tw && return X

0 commit comments

Comments
 (0)