mirror of
https://github.com/Z3Prover/z3
synced 2026-07-15 19:45:41 +00:00
Fix mpz self-assignment in set
This commit is contained in:
parent
efd31bd53c
commit
96128e5b6b
1 changed files with 3 additions and 0 deletions
|
|
@ -593,6 +593,9 @@ public:
|
|||
void bitwise_not(unsigned sz, mpz const & a, mpz & c);
|
||||
|
||||
void set(mpz & target, mpz const & source) {
|
||||
if (&target == &source) {
|
||||
return;
|
||||
}
|
||||
if (is_small(source)) {
|
||||
set(target, source.value());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue