prog: fix 32-bit build

Currently fails with:
prog/mutation.go:442:24: constant 4294967296 overflows int
This commit is contained in:
Dmitry Vyukov 2018-03-05 12:08:00 +01:00
parent 42467f5b7b
commit bc09be4253

View File

@ -439,7 +439,7 @@ loop:
}
i := r.Intn(len(data) - 3)
p := (*uint32)(unsafe.Pointer(&data[i]))
*p = uint32(r.rand(1 << 32))
*p = r.Uint32()
case 3: // int64
if len(data) < 8 {
retry = true