diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-08-19 09:46:43 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-08-19 10:16:23 +0200 |
| commit | 838e336594e410898667fa06b15f1116a3b586fd (patch) | |
| tree | 1520155493fabef45ab3b5d59f396c42f7968713 /prog/prog_test.go | |
| parent | 33b9e777cbaf25d5ac727783aedddb382c97338f (diff) | |
sys, prog: switch values to to uint64
We currently use uintptr for all values.
This won't work for 32-bit archs.
Moreover in some cases we use uintptr but assume
that it is always 64-bits (e.g. in encodingexec).
Switch everything to uint64.
Update #324
Diffstat (limited to 'prog/prog_test.go')
| -rw-r--r-- | prog/prog_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/prog_test.go b/prog/prog_test.go index 369b8dc78..82c8cb160 100644 --- a/prog/prog_test.go +++ b/prog/prog_test.go @@ -96,7 +96,7 @@ func TestVmaType(t *testing.T) { if len(c.Args) != 6 { t.Fatalf("generated wrong number of args %v", len(c.Args)) } - check := func(v, l Arg, min, max uintptr) { + check := func(v, l Arg, min, max uint64) { va, ok := v.(*PointerArg) if !ok { t.Fatalf("vma has bad type: %v", v) |
