Skip to content

Commit cf61ad0

Browse files
Update NaNMath.jl
1 parent 05dbeac commit cf61ad0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/NaNMath.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ pow(x, y) = ^(x, y)
3939

4040
# The following combinations are safe, so we can fall back to ^
4141
pow(x::Number, y::Integer) = x^y
42+
pow(x::Real, y::Integer) = x^y
4243
pow(x::Complex, y::Complex) = x^y
4344

4445
"""

0 commit comments

Comments
 (0)