summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/GdbIndex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/GdbIndex.cpp b/lld/ELF/GdbIndex.cpp
index 592a9acada5..a7c002cfe37 100644
--- a/lld/ELF/GdbIndex.cpp
+++ b/lld/ELF/GdbIndex.cpp
@@ -116,7 +116,7 @@ std::pair<bool, GdbSymbol *> GdbHashTab::add(uint32_t Hash, size_t Offset) {
}
void GdbHashTab::finalizeContents() {
- Table.resize(std::max(1024UL, NextPowerOf2(Map.size() * 4 / 3)));
+ Table.resize(std::max<uint64_t>(1024, NextPowerOf2(Map.size() * 4 / 3)));
for (auto &P : Map) {
GdbSymbol *Sym = P.second;
OpenPOWER on IntegriCloud