zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 52b97eeef1fbb72f1b0bd5d466383cad13a67d54 (tree)
parent 057d97c093c81150a3761b50a1f646703b6cfd1b
Author: Jakub Konka <kubkon@jakubkonka.com>
Date:   Fri,  5 Jun 2020 09:27:33 +0200

Return u32 in @wasmMemorySize instead of i32

Diffstat:
Msrc/ir.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ir.cpp b/src/ir.cpp @@ -4997,7 +4997,7 @@ static IrInstSrc *ir_build_wasm_memory_size_src(IrBuilderSrc *irb, Scope *scope, static IrInstGen *ir_build_wasm_memory_size_gen(IrAnalyze *ira, IrInst *source_instr, IrInstGen *index) { IrInstGenWasmMemorySize *instruction = ir_build_inst_gen<IrInstGenWasmMemorySize>(&ira->new_irb, source_instr->scope, source_instr->source_node); - instruction->base.value->type = ira->codegen->builtin_types.entry_i32; + instruction->base.value->type = ira->codegen->builtin_types.entry_u32; instruction->index = index; ir_ref_inst_gen(index);