提交 9b063fdf 编写于 作者: 3 3dgen

补充int转rune

上级 52f85d9b
...@@ -493,7 +493,7 @@ func (m *Module) EmitGenConvert(x Value, typ ValueType) (insts []wat.Inst) { ...@@ -493,7 +493,7 @@ func (m *Module) EmitGenConvert(x Value, typ ValueType) (insts []wat.Inst) {
insts = append(insts, wat.NewInstAnd(wat.I32{})) insts = append(insts, wat.NewInstAnd(wat.I32{}))
return return
case typ.Equal(m.I32), typ.Equal(m.U32): case typ.Equal(m.I32), typ.Equal(m.U32), typ.Equal(m.RUNE):
insts = append(insts, x.EmitPush()...) insts = append(insts, x.EmitPush()...)
switch { switch {
case xt.Equal(m.I8), xt.Equal(m.U8), xt.Equal(m.I16), xt.Equal(m.U16), xt.Equal(m.I32), xt.Equal(m.U32): case xt.Equal(m.I8), xt.Equal(m.U8), xt.Equal(m.I16), xt.Equal(m.U16), xt.Equal(m.I32), xt.Equal(m.U32):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册