summaryrefslogtreecommitdiff
path: root/src/binary-reader-linker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader-linker.cc')
-rw-r--r--src/binary-reader-linker.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/binary-reader-linker.cc b/src/binary-reader-linker.cc
index 0da7b9c2..52a19adb 100644
--- a/src/binary-reader-linker.cc
+++ b/src/binary-reader-linker.cc
@@ -81,7 +81,7 @@ class BinaryReaderLinker : public BinaryReaderNop {
virtual Result OnReloc(RelocType type,
uint32_t offset,
uint32_t index,
- int32_t addend);
+ uint32_t addend);
virtual Result OnInitExprI32ConstExpr(uint32_t index, uint32_t value);
@@ -117,7 +117,7 @@ Result BinaryReaderLinker::OnRelocCount(uint32_t count,
Result BinaryReaderLinker::OnReloc(RelocType type,
uint32_t offset,
uint32_t index,
- int32_t addend) {
+ uint32_t addend) {
if (offset + RELOC_SIZE > reloc_section->size) {
WABT_FATAL("invalid relocation offset: %#x\n", offset);
}