Skip to content

Commit

Permalink
update hash #2579
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <[email protected]>
  • Loading branch information
NikolajBjorner committed Sep 24, 2019
1 parent 1203af8 commit 38ad66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/mpq.h
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ class mpq_manager : public mpz_manager<SYNCH> {

static unsigned hash(mpz const & a) { return mpz_manager<SYNCH>::hash(a); }

static unsigned hash(mpq const & a) { return hash(a.m_num); }
static unsigned hash(mpq const & a) { return hash(a.m_num) + 3*hash(a.m_den); }

bool eq(mpz const & a, mpz const & b) { return mpz_manager<SYNCH>::eq(a, b); }

Expand Down

0 comments on commit 38ad66c

Please sign in to comment.