Skip to content

Commit

Permalink
fix #6085
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Jun 6, 2022
1 parent dca1dcc commit bb6c274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/mpz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2248,7 +2248,7 @@ template<bool SYNCH>
unsigned mpz_manager<SYNCH>::mlog2(mpz const & a) {
if (is_nonneg(a))
return 0;
if (is_small(a))
if (is_small(a) && a.m_val > INT_MIN)
return ::log2((unsigned)-a.m_val);
#ifndef _MP_GMP
static_assert(sizeof(digit_t) == 8 || sizeof(digit_t) == 4, "");
Expand Down

0 comments on commit bb6c274

Please sign in to comment.