Skip to content

Commit

Permalink
pacify static code analyzer (#13167)
Browse files Browse the repository at this point in the history
  • Loading branch information
zverevgeny authored Jan 4, 2025
1 parent e9955b8 commit 9740792
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,12 @@ class TCompactionTaskData {
public:
ui64 GetTargetCompactionLevel() const {
if (MemoryUsage > ((ui64)1 << 30)) {
AFL_VERIFY(TargetCompactionLevel);
return TargetCompactionLevel - 1;
if (TargetCompactionLevel) {
return TargetCompactionLevel - 1;
} else {
AFL_VERIFY(false);
return 0;
}
} else {
return TargetCompactionLevel;
}
Expand Down

0 comments on commit 9740792

Please sign in to comment.