1
0
mirror of https://github.com/golang/go synced 2024-11-15 02:40:32 -07:00

_64bit -> is64Bit in TestRepeatCatchesOverflow

This commit is contained in:
go101 2024-05-03 17:51:10 +08:00
parent 338bbfcbee
commit 29dc0cb9c9
2 changed files with 4 additions and 4 deletions

View File

@ -1276,8 +1276,8 @@ func TestRepeatCatchesOverflow(t *testing.T) {
6: {string(make([]byte, 255)), int((^uint(0))/255 + 1), "overflow"}, 6: {string(make([]byte, 255)), int((^uint(0))/255 + 1), "overflow"},
}) })
const _64bit = 1<<(^uintptr(0)>>63)/2 != 0 const is64Bit = 1<<(^uintptr(0)>>63)/2 != 0
if !_64bit { if !is64Bit {
return return
} }

View File

@ -1204,8 +1204,8 @@ func TestRepeatCatchesOverflow(t *testing.T) {
6: {string(make([]byte, 255)), int((^uint(0))/255 + 1), "overflow"}, 6: {string(make([]byte, 255)), int((^uint(0))/255 + 1), "overflow"},
}) })
const _64bit = 1<<(^uintptr(0)>>63)/2 != 0 const is64Bit = 1<<(^uintptr(0)>>63)/2 != 0
if !_64bit { if !is64Bit {
return return
} }