don't allocate full(X.coeefs) when computing hash

This commit is contained in:
kalmarek 2018-08-13 19:30:03 +02:00
parent d2e9688e9f
commit 86777050b1
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ function deepcopy_internal(X::GroupRingElem, dict::ObjectIdDict)
end
function hash(X::GroupRingElem, h::UInt)
return hash(full(X.coeffs), hash(parent(X), hash(GroupRingElem, h)))
return hash(X.coeffs, hash(parent(X), hash(GroupRingElem, h)))
end
function getindex(X::GroupRingElem, n::Int)