From 74a8f21379a34fe6ff34abb6f67b391fc587324a Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Sun, 15 Mar 2026 20:04:06 +0000 Subject: [PATCH] Encode indices as unsigned LEB128 instead of signed --- asm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asm.js b/asm.js index 2266591..5041d3f 100644 --- a/asm.js +++ b/asm.js @@ -963,7 +963,7 @@ export class Assembler { } func.body.push(...this.leb128(def_value)); } else { - func.body.push(...this.leb128(value)); + func.body.push(...this.uleb128(value)); } }