From 8abc77a0c03580b3cac6c3f462fbeab2fc57bb29 Mon Sep 17 00:00:00 2001 From: kalmarek Date: Fri, 15 Sep 2017 19:03:43 +0200 Subject: [PATCH] override Nemo's *(Rational, ::GroupRingElem) --- src/GroupRings.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GroupRings.jl b/src/GroupRings.jl index e9f9f39..223de3b 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -295,7 +295,7 @@ end (*)(X::GroupRingElem, a) = mul(a,X) # disallow Nemo.Rings to hijack *(::Integer, ::RingElem) -(*){T<:Integer}(a::T, X::GroupRingElem) = mul(a,X) +(*)(a::Union{Integer, Rational}, X::GroupRingElem) = mul(a,X) (/)(X::GroupRingElem, a) = 1/a*X