3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00

fix rlimit for clang-10 (#4658)

This commit is contained in:
Arie Gurfinkel 2020-08-21 13:34:10 -04:00 committed by GitHub
parent ecb43ccca2
commit 22b5daf85e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ bool reslimit::inc(unsigned offset) {
}
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) {
new_limit = std::numeric_limits<uint64_t>::max();
}