Skip to content

Commit

Permalink
Revert "Work around inference failure in promotion on nightly (#249)" (
Browse files Browse the repository at this point in the history
…#294)

This reverts commit 277a3e4.
  • Loading branch information
kimikage authored Apr 30, 2024
1 parent 3a4346c commit cb1efdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FixedPointNumbers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ function promote_rule(::Type{X1}, ::Type{X2}) where {T1, f1, X1 <: FixedPoint{T1
m = max(nbitsint(X1), nbitsint(X2))
_widen_rawtype(X{T,f}, m)
end
# TODO: avoid using @pure
@pure function _widen_rawtype(::Type{X}, m) where {T, f, X<:FixedPoint{T,f}}

function _widen_rawtype(::Type{X}, m) where {T, f, X<:FixedPoint{T,f}}
nbitsint(X) >= m && return X
Tw = widen1(T)
T === Tw && return X
Expand Down

0 comments on commit cb1efdd

Please sign in to comment.