Skip to content

Commit

Permalink
fix: checkptr
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed Jul 30, 2024
1 parent 73c55af commit b598aa7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push-check-compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build:
strategy:
matrix:
go-version: [1.17.x, 1.20.x, 1.23.x]
go-version: [1.17.x, 1.22.x]
os: [ARM64, X64]
runs-on: ${{ matrix.os }}
steps:
Expand Down
5 changes: 3 additions & 2 deletions internal/native/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,12 @@ type J2TState struct {
Extra J2TExtra
}

//go:nocheckptr
func (s J2TState) String() string {
name := ""
typ := 0
desc := (*tTypeDesc)(unsafe.Pointer(s.TypeDesc))
if desc != nil {
if s.TypeDesc != 0 {
desc := (*tTypeDesc)(unsafe.Pointer(s.TypeDesc))
name = desc.name
typ = int(desc.ttype)
}
Expand Down

0 comments on commit b598aa7

Please sign in to comment.