Skip to content

Commit

Permalink
Int!=Int64
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Aug 19, 2022
1 parent 21d2d24 commit e149aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ end
isnan(y) && return y
y = sign(y)*0x1.8p62
end
yint = unsafe_trunc(Int, y) # This is actually safe since julia freezes the result
yint = unsafe_trunc(Int64, y) # This is actually safe since julia freezes the result
y == yint && return @noinline x^yint
2*xu==0 && return abs(y)*Inf*(!(y>0)) # if x==0
x<0 && throw_exp_domainerror(x) # |y| is small enough that y isn't an integer
Expand Down

0 comments on commit e149aaa

Please sign in to comment.