Skip to content

Commit

Permalink
Merge #466
Browse files Browse the repository at this point in the history
466: Adjust roundUp for 0 as input r=Mic92 a=cgzones



Co-authored-by: Christian Göttsche <cgzones@googlemail.com>
  • Loading branch information
bors[bot] and cgzones authored Feb 23, 2023
2 parents da035d6 + 5b88266 commit 69a7ae5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/patchelf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,8 @@ static void writeFile(const std::string & fileName, const FileContents & content

static uint64_t roundUp(uint64_t n, uint64_t m)
{
if (n == 0)
return m;
return ((n - 1) / m + 1) * m;
}

Expand Down

0 comments on commit 69a7ae5

Please sign in to comment.