Skip to content

Commit

Permalink
_64bit -> is64Bit in TestRepeatCatchesOverflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TapirLiu committed May 3, 2024
1 parent 338bbfc commit 29dc0cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bytes/bytes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1276,8 +1276,8 @@ func TestRepeatCatchesOverflow(t *testing.T) {
6: {string(make([]byte, 255)), int((^uint(0))/255 + 1), "overflow"},
})

const _64bit = 1<<(^uintptr(0)>>63)/2 != 0
if !_64bit {
const is64Bit = 1<<(^uintptr(0)>>63)/2 != 0
if !is64Bit {
return
}

Expand Down
4 changes: 2 additions & 2 deletions src/strings/strings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1204,8 +1204,8 @@ func TestRepeatCatchesOverflow(t *testing.T) {
6: {string(make([]byte, 255)), int((^uint(0))/255 + 1), "overflow"},
})

const _64bit = 1<<(^uintptr(0)>>63)/2 != 0
if !_64bit {
const is64Bit = 1<<(^uintptr(0)>>63)/2 != 0
if !is64Bit {
return
}

Expand Down

0 comments on commit 29dc0cb

Please sign in to comment.