diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-03-05 12:08:00 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-03-05 12:10:27 +0100 |
| commit | bc09be42533e2ba62177abee2a56bfaea2fb85d3 (patch) | |
| tree | 2fc7d9821af6318237f4b3a86aa92bd5d686014b /prog/mutation.go | |
| parent | 42467f5b7bf4eef20f78f796fc6eb10401784d86 (diff) | |
prog: fix 32-bit build
Currently fails with:
prog/mutation.go:442:24: constant 4294967296 overflows int
Diffstat (limited to 'prog/mutation.go')
| -rw-r--r-- | prog/mutation.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/mutation.go b/prog/mutation.go index 85a718a80..2e1039551 100644 --- a/prog/mutation.go +++ b/prog/mutation.go @@ -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 |
