forked from wa-lang/wa
修正 bool 未识别为 num
This commit is contained in:
parent
78f7b71fdb
commit
e644df0204
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue