提交 e644df02 编写于 作者: 3 3dgen

修正 bool 未识别为 num

上级 78f7b71f
......@@ -166,7 +166,7 @@ func (m *Module) GenValueType(from types.Type) ValueType {
func IsNumber(v Value) bool {
switch v.Type().(type) {
case *tI8, *tU8, *tI16, *tU16, *tI32, *tU32, *tI64, *tU64, *tF32, *tF64:
case *tI8, *tU8, *tI16, *tU16, *tI32, *tU32, *tI64, *tU64, *tF32, *tF64, *tBool:
return true
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册