修正 bool 未识别为 num

This commit is contained in:
3dgen 2023-07-13 11:14:53 +08:00
parent 78f7b71fdb
commit e644df0204
1 changed files with 1 additions and 1 deletions

View File

@ -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
}