mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
fix rlimit for clang-10 (#4658)
This commit is contained in:
parent
ecb43ccca2
commit
22b5daf85e
|
@ -53,7 +53,7 @@ bool reslimit::inc(unsigned offset) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void reslimit::push(unsigned delta_limit) {
|
void reslimit::push(unsigned delta_limit) {
|
||||||
uint64_t new_limit = delta_limit + m_count;
|
uint64_t new_limit = delta_limit ? delta_limit + m_count : std::numeric_limits<uint64_t>::max();
|
||||||
if (new_limit <= m_count) {
|
if (new_limit <= m_count) {
|
||||||
new_limit = std::numeric_limits<uint64_t>::max();
|
new_limit = std::numeric_limits<uint64_t>::max();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue