From 96cacfbee64db0b26d80f14845826c1306e0bfc6 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Fri, 17 Feb 2017 06:56:40 -0500 Subject: [PATCH] fix typo in BigInt^literal --- base/gmp.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/gmp.jl b/base/gmp.jl index 971f921a69e8c..81daf52fd14bb 100644 --- a/base/gmp.jl +++ b/base/gmp.jl @@ -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