summaryrefslogtreecommitdiff
path: root/src/binary-reader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader.cc')
-rw-r--r--src/binary-reader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binary-reader.cc b/src/binary-reader.cc
index c6e1f564..435d4d5d 100644
--- a/src/binary-reader.cc
+++ b/src/binary-reader.cc
@@ -1001,7 +1001,7 @@ static void read_reloc_section(Context* ctx, uint32_t section_size) {
case RelocType::MemoryAddressLEB:
case RelocType::MemoryAddressSLEB:
case RelocType::MemoryAddressI32:
- in_u32_leb128(ctx, &addend, "addend");
+ in_i32_leb128(ctx, &addend, "addend");
break;
default:
break;