aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objcopy/ELF/Object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-objcopy/ELF/Object.cpp')
-rw-r--r--llvm/tools/llvm-objcopy/ELF/Object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objcopy/ELF/Object.cpp b/llvm/tools/llvm-objcopy/ELF/Object.cpp
index 7a9a1bd..a43fab2 100644
--- a/llvm/tools/llvm-objcopy/ELF/Object.cpp
+++ b/llvm/tools/llvm-objcopy/ELF/Object.cpp
@@ -276,7 +276,7 @@ void IHexSectionWriterBase::visit(const StringTableSection &Sec) {
// We are free to pass an invalid pointer to writeSection as long
// as we don't actually write any data. The real writer class has
// to override this method .
- writeSection(&Sec, {nullptr, Sec.Size});
+ writeSection(&Sec, {nullptr, static_cast<size_t>(Sec.Size)});
}
void IHexSectionWriterBase::visit(const DynamicRelocationSection &Sec) {