From e644df0204c828056f7e6c0a9d052d29bc98a32e Mon Sep 17 00:00:00 2001 From: 3dgen <476582@qq.com> Date: Thu, 13 Jul 2023 11:14:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20bool=20=E6=9C=AA=E8=AF=86?= =?UTF-8?q?=E5=88=AB=E4=B8=BA=20num?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/backends/compiler_wat/wir/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }