diff --git a/internal/backends/compiler_wat/wir/util.go b/internal/backends/compiler_wat/wir/util.go index cb21bd6..8a5f483 100644 --- a/internal/backends/compiler_wat/wir/util.go +++ b/internal/backends/compiler_wat/wir/util.go @@ -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 }