aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/shedlang/compiler/backends/wasm/structure/binary/WasmBinaryWriter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/shedlang/compiler/backends/wasm/structure/binary/WasmBinaryWriter.java b/src/main/java/org/shedlang/compiler/backends/wasm/structure/binary/WasmBinaryWriter.java
index 14393722..d731377f 100644
--- a/src/main/java/org/shedlang/compiler/backends/wasm/structure/binary/WasmBinaryWriter.java
+++ b/src/main/java/org/shedlang/compiler/backends/wasm/structure/binary/WasmBinaryWriter.java
@@ -146,7 +146,7 @@ public class WasmBinaryWriter {
index
));
} else if (unrelocatedIndex.isEmpty()) {
- throw new IllegalStateException("cannot write memory address outside of relocatable section");
+ throw new IllegalStateException("cannot write relocatable index outside of relocatable section");
} else {
if (relocationType.isSigned()) {
writeSignedInt32(unrelocatedIndex.getAsInt());