mirror of
https://github.com/golang/go
synced 2024-11-15 00:40:31 -07:00
_64bit -> is64Bit in TestRepeatCatchesOverflow
This commit is contained in:
parent
338bbfcbee
commit
29dc0cb9c9
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user