summaryrefslogtreecommitdiff
path: root/src/binary-reader-logging.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader-logging.cc')
-rw-r--r--src/binary-reader-logging.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/binary-reader-logging.cc b/src/binary-reader-logging.cc
index 093c9c07..7209a474 100644
--- a/src/binary-reader-logging.cc
+++ b/src/binary-reader-logging.cc
@@ -403,9 +403,10 @@ Result BinaryReaderLogging::OnRelocCount(uint32_t count,
Result BinaryReaderLogging::OnReloc(RelocType type,
uint32_t offset,
uint32_t index,
- int32_t addend) {
+ uint32_t addend) {
+ int32_t signed_addend = static_cast<int32_t>(addend);
LOGF("OnReloc(type: %s, offset: %u, index: %u, addend: %d)\n",
- get_reloc_type_name(type), offset, index, addend);
+ get_reloc_type_name(type), offset, index, signed_addend);
return reader->OnReloc(type, offset, index, addend);
}