mirror of
https://github.com/Z3Prover/z3
synced 2025-06-05 21:53:23 +00:00
address some build warnings.
This commit is contained in:
parent
b780b54574
commit
fa22b646aa
2 changed files with 2 additions and 1 deletions
|
@ -694,7 +694,7 @@ namespace sls {
|
||||||
hashtable<zstring, zstring_hash_proc, default_eq<zstring>> set;
|
hashtable<zstring, zstring_hash_proc, default_eq<zstring>> set;
|
||||||
set.insert(zstring(""));
|
set.insert(zstring(""));
|
||||||
for (unsigned i = 0; i < val_other.length(); ++i) {
|
for (unsigned i = 0; i < val_other.length(); ++i) {
|
||||||
for (unsigned j = val_other.length(); j-- > 0; ) {
|
for (unsigned j = val_other.length() - i; j-- > 0; ) {
|
||||||
zstring sub = val_other.extract(i, j);
|
zstring sub = val_other.extract(i, j);
|
||||||
if (set.contains(sub))
|
if (set.contains(sub))
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -414,6 +414,7 @@ public:
|
||||||
void push_back(ref & r, value const & v) {
|
void push_back(ref & r, value const & v) {
|
||||||
if (r.m_ref == nullptr)
|
if (r.m_ref == nullptr)
|
||||||
mk(r);
|
mk(r);
|
||||||
|
SASSERT(r.m_ref);
|
||||||
if (r.root()) {
|
if (r.root()) {
|
||||||
if (r.unshared()) {
|
if (r.unshared()) {
|
||||||
rpush_back(r.m_ref, v);
|
rpush_back(r.m_ref, v);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue