Skip to content

Commit

Permalink
Merge pull request #238 from emlix/roundup64
Browse files Browse the repository at this point in the history
fix roundUp() to not truncate 64 bit values
  • Loading branch information
edolstra committed Sep 17, 2020
2 parents 67005a9 + adee501 commit 5cd4517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/patchelf.cc
Expand Up @@ -541,7 +541,7 @@ static void writeFile(std::string fileName, FileContents contents)
}


static unsigned int roundUp(unsigned int n, unsigned int m)
static uint64_t roundUp(uint64_t n, uint64_t m)
{
return ((n - 1) / m + 1) * m;
}
Expand Down

0 comments on commit 5cd4517

Please sign in to comment.