Skip to content

Commit 5cd4517

Browse files
authored
Merge pull request #238 from emlix/roundup64
fix roundUp() to not truncate 64 bit values
2 parents 67005a9 + adee501 commit 5cd4517

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patchelf.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ static void writeFile(std::string fileName, FileContents contents)
541541
}
542542

543543

544-
static unsigned int roundUp(unsigned int n, unsigned int m)
544+
static uint64_t roundUp(uint64_t n, uint64_t m)
545545
{
546546
return ((n - 1) / m + 1) * m;
547547
}

0 commit comments

Comments
 (0)