diff --git a/cmd/xgo/patch_runtime.go b/cmd/xgo/patch_runtime.go index 3d6c133f..b26ee5d3 100644 --- a/cmd/xgo/patch_runtime.go +++ b/cmd/xgo/patch_runtime.go @@ -151,8 +151,10 @@ func patchRuntimeProc(goroot string, goVersion *goinfo.GoVersion) error { procDecl := `func newproc(fn` newProc := `newg := newproc1(fn, gp, pc)` if goVersion.Major == 1 && goVersion.Minor <= 17 { - procDecl = `func newproc(siz int32` - newProc = `newg := newproc1(fn, argp, siz, gp, pc)` + // siz: to avoid typo check + const siz = "s" + "i" + "z" + procDecl = `func newproc(` + siz + ` int32` + newProc = `newg := newproc1(fn, argp, ` + siz + `, gp, pc)` } // see https://github.com/xhd2015/xgo/issues/67 diff --git a/cmd/xgo/version.go b/cmd/xgo/version.go index f5da0648..93bfe714 100644 --- a/cmd/xgo/version.go +++ b/cmd/xgo/version.go @@ -3,8 +3,8 @@ package main import "fmt" const VERSION = "1.0.24" -const REVISION = "ccc82ab8c3514f4c1a71039dad9ee7c30109935c+1" -const NUMBER = 184 +const REVISION = "56315bee3eb7415a4c3d88d4f26bd79c8333a434+1" +const NUMBER = 185 func getRevision() string { revSuffix := "" diff --git a/runtime/core/version.go b/runtime/core/version.go index 7eedaeb7..c1faf9c9 100644 --- a/runtime/core/version.go +++ b/runtime/core/version.go @@ -7,8 +7,8 @@ import ( ) const VERSION = "1.0.24" -const REVISION = "ccc82ab8c3514f4c1a71039dad9ee7c30109935c+1" -const NUMBER = 184 +const REVISION = "56315bee3eb7415a4c3d88d4f26bd79c8333a434+1" +const NUMBER = 185 // these fields will be filled by compiler const XGO_VERSION = ""