From adee501ccbec46b22e7e97e94da09ea489a4454e Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Wed, 16 Sep 2020 08:38:22 +0200 Subject: [PATCH] fix roundUp() to not truncate 64 bit values --- src/patchelf.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/patchelf.cc b/src/patchelf.cc index 05ec793..0af9f0a 100644 --- a/src/patchelf.cc +++ b/src/patchelf.cc @@ -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; }