From 7590c0f922a1422ee23bab1088b5d30a4ccd29f0 Mon Sep 17 00:00:00 2001 From: visualfc Date: Mon, 15 Jan 2024 15:42:37 +0800 Subject: [PATCH] update types.Sizes --- builtin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin.go b/builtin.go index 7dfbee9e..d1575746 100644 --- a/builtin.go +++ b/builtin.go @@ -725,14 +725,14 @@ func checkArgsCount(pkg *Package, fn string, n int, args int, src ast.Node) { } var ( - std *types.StdSizes + std types.Sizes ) func init() { if runtime.Compiler == "gopherjs" { std = &types.StdSizes{WordSize: 4, MaxAlign: 4} } else { - std = types.SizesFor(runtime.Compiler, runtime.GOARCH).(*types.StdSizes) + std = types.SizesFor(runtime.Compiler, runtime.GOARCH) } }