3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 02:15:19 +00:00
Co-authored-by: Johannes Schoisswohl <johannes.schoisswohl@myotis.at>
This commit is contained in:
Joe Hauns 2022-06-29 19:10:33 +01:00 committed by GitHub
parent ff265235c1
commit 03287d65a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1842,7 +1842,7 @@ std::string mpz_manager<SYNCH>::to_string(mpz const & a) const {
template<bool SYNCH>
unsigned mpz_manager<SYNCH>::hash(mpz const & a) {
if (is_small(a))
return a.m_val;
return ::abs(a.m_val);
#ifndef _MP_GMP
unsigned sz = size(a);
if (sz == 1)