Skip to content

Commit

Permalink
patch only allow fastpow on Real
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Sep 28, 2024
1 parent 2f31389 commit d42314e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DiffEqBase"
uuid = "2b5f629d-d688-5b77-993f-72d75c75574e"
authors = ["Chris Rackauckas <[email protected]>"]
version = "6.156.0"
version = "6.156.1"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Expand Down
2 changes: 1 addition & 1 deletion src/fastpow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const EXP2FT = (Float32(0x1.6a09e667f3bcdp-1),
fastpow(x::T, y::T) where {T} -> float(T)
Trips through Float32 for performance.
"""
@inline function fastpow(x::T, y::T) where {T}
@inline function fastpow(x::T, y::T) where {T<:Real}
outT = float(T)
if iszero(x)
return zero(outT)
Expand Down

0 comments on commit d42314e

Please sign in to comment.