From 27e9ce254fb3ec253f948c4ea2212703ef6b8e33 Mon Sep 17 00:00:00 2001 From: kalmar Date: Thu, 18 May 2017 21:49:12 +0200 Subject: [PATCH] try to coerce before throwing error --- src/GroupRings.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/src/GroupRings.jl b/src/GroupRings.jl index ddf2d8d..383acbc 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -107,7 +107,6 @@ function (RG::GroupRing)(T::Type=Int) end function (RG::GroupRing)(g::GroupElem, T::Type=Int) - typeof(g) == elem_type(RG.group) || throw("$g does not belong to $(RG.group), the underlying group of $RG") g = try RG.group(g) catch