From bfe9fb5e639573add9a153473be93db7d1703706 Mon Sep 17 00:00:00 2001 From: luccie-cmd Date: Wed, 26 Mar 2025 17:18:32 +0100 Subject: Removed IR parsing and changed fatal bug of i64s being detected as i32s Signed-off-by: luccie-cmd --- src/mods/Parser.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mods/Parser.zig') 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), -- cgit v1.2.3