diff options
author | luccie-cmd <luccie@sideros.org> | 2025-03-26 17:18:32 +0100 |
---|---|---|
committer | Ernesto Lanchares <elancha98@proton.me> | 2025-03-27 13:56:37 +0100 |
commit | bfe9fb5e639573add9a153473be93db7d1703706 (patch) | |
tree | ab2eadc268b0d51c68b27270ca8c3fcfbf096f51 | |
parent | 09691ec4d93cda6ab31d28d6e478257209fe625e (diff) |
Removed IR parsing and changed fatal bug of i64s being detected as i32s
Signed-off-by: luccie-cmd <luccie@sideros.org>
-rw-r--r-- | src/mods/Parser.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mods/Parser.zig b/src/mods/Parser.zig index 2e3c434..080b407 100644 --- a/src/mods/Parser.zig +++ b/src/mods/Parser.zig @@ -140,7 +140,7 @@ fn parseVector(self: *Parser, parse_fn: anytype) ![]VectorFnResult(parse_fn) { fn parseNumtype(self: *Parser) !std.wasm.Valtype { return switch (try self.readByte()) { 0x7F => .i32, - 0x7E => .i32, + 0x7E => .i64, 0x7D => .f32, 0x7C => .f64, else => Error.invalid_numtype, @@ -462,7 +462,7 @@ fn parseCode(self: *Parser) !Func { local_count += l.n; } - _ = try IR.parse(self); + // _ = try IR.parse(self); const func = Func{ .locals = try self.allocator.alloc(Valtype, local_count), |