mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
fixed warnings
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
fd0920eb36
commit
7d196201dc
2 changed files with 4 additions and 3 deletions
|
@ -1535,7 +1535,7 @@ bool mpz_manager<SYNCH>::is_power_of_two(mpz const & a, unsigned & shift) {
|
|||
return false;
|
||||
if (is_small(a)) {
|
||||
if (::is_power_of_two(a.m_val)) {
|
||||
shift = ::log2(a.m_val);
|
||||
shift = ::log2((unsigned)a.m_val);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
|
@ -1838,7 +1838,7 @@ unsigned mpz_manager<SYNCH>::log2(mpz const & a) {
|
|||
if (is_nonpos(a))
|
||||
return 0;
|
||||
if (is_small(a))
|
||||
return ::log2(a.m_val);
|
||||
return ::log2((unsigned)a.m_val);
|
||||
#ifndef _MP_GMP
|
||||
COMPILE_TIME_ASSERT(sizeof(digit_t) == 8 || sizeof(digit_t) == 4);
|
||||
mpz_cell * c = a.m_ptr;
|
||||
|
@ -1860,7 +1860,7 @@ unsigned mpz_manager<SYNCH>::mlog2(mpz const & a) {
|
|||
if (is_nonneg(a))
|
||||
return 0;
|
||||
if (is_small(a))
|
||||
return ::log2(-a.m_val);
|
||||
return ::log2((unsigned)-a.m_val);
|
||||
#ifndef _MP_GMP
|
||||
COMPILE_TIME_ASSERT(sizeof(digit_t) == 8 || sizeof(digit_t) == 4);
|
||||
mpz_cell * c = a.m_ptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue