Skip to content

Commit

Permalink
fix typo in BigInt^literal
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Feb 17, 2017
1 parent 701e28d commit 96cacfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/gmp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ function ^(x::BigInt, y::Culong)
return z
end
@generated function ^{p}(x::BigInt, ::Type{Val{p}})
p < 0 && return :(inv(x)^p)
p < 0 && return :(inv(x)^$(-p))
return :(x^p)
end

Expand Down

0 comments on commit 96cacfb

Please sign in to comment.