Skip to content

Commit

Permalink
fix rlimit for clang-10 (#4658)
Browse files Browse the repository at this point in the history
  • Loading branch information
agurfinkel authored Aug 21, 2020
1 parent ecb43cc commit 22b5daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/rlimit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 22b5daf

Please sign in to comment.