3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-14 18:06:15 +00:00

reinterpret_cast fixes for the Windows compiler.

This commit is contained in:
Christoph M. Wintersteiger 2015-10-04 16:41:28 +01:00
parent 4626196907
commit f11502e0ac
2 changed files with 4 additions and 4 deletions

View file

@ -200,8 +200,9 @@ void mpfx_manager::set(mpfx & n, uint64 v) {
allocate_if_needed(n);
n.m_sign = 0;
unsigned * w = words(n);
uint64 * _vp = &v;
unsigned * _v = 0;
memcpy(_v, &v, sizeof(unsigned*));
memcpy(&_v, &_vp, sizeof(unsigned*));
for (unsigned i = 0; i < m_total_sz; i++)
w[i] = 0;
w[m_frac_part_sz] = _v[0];