mirror of
https://github.com/NixOS/patchelf.git
synced 2025-10-23 09:47:51 +08:00
fix roundUp() to not truncate 64 bit values
This commit is contained in:
@@ -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;
|
return ((n - 1) / m + 1) * m;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user