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:
parent
338bbfcbee
commit
29dc0cb9c9
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user