Skip to content

Commit d42314e

Browse files
patch only allow fastpow on Real
1 parent 2f31389 commit d42314e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DiffEqBase"
22
uuid = "2b5f629d-d688-5b77-993f-72d75c75574e"
33
authors = ["Chris Rackauckas <[email protected]>"]
4-
version = "6.156.0"
4+
version = "6.156.1"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

src/fastpow.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const EXP2FT = (Float32(0x1.6a09e667f3bcdp-1),
5656
fastpow(x::T, y::T) where {T} -> float(T)
5757
Trips through Float32 for performance.
5858
"""
59-
@inline function fastpow(x::T, y::T) where {T}
59+
@inline function fastpow(x::T, y::T) where {T<:Real}
6060
outT = float(T)
6161
if iszero(x)
6262
return zero(outT)

0 commit comments

Comments
 (0)