Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
xhd2015 committed Apr 16, 2024
1 parent 56315be commit 6eeff52
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions cmd/xgo/patch_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 154 in cmd/xgo/patch_runtime.go

View workflow job for this annotation

GitHub Actions / build

"siz" should be "six" or "size".
const siz = "s" + "i" + "z"

Check warning on line 155 in cmd/xgo/patch_runtime.go

View workflow job for this annotation

GitHub Actions / build

"siz" should be "six" or "size".
procDecl = `func newproc(` + siz + ` int32`

Check warning on line 156 in cmd/xgo/patch_runtime.go

View workflow job for this annotation

GitHub Actions / build

"siz" should be "six" or "size".
newProc = `newg := newproc1(fn, argp, ` + siz + `, gp, pc)`

Check warning on line 157 in cmd/xgo/patch_runtime.go

View workflow job for this annotation

GitHub Actions / build

"siz" should be "six" or "size".
}

// see https://github.com/xhd2015/xgo/issues/67
Expand Down
4 changes: 2 additions & 2 deletions cmd/xgo/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 := ""
Expand Down
4 changes: 2 additions & 2 deletions runtime/core/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit 6eeff52

Please sign in to comment.