Skip to content

Commit

Permalink
fix roundUp() to not truncate 64 bit values
Browse files Browse the repository at this point in the history
  • Loading branch information
DerDakon committed Sep 16, 2020
1 parent 67005a9 commit adee501
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 adee501

Please sign in to comment.