aboutsummaryrefslogtreecommitdiffstats
path: root/prog/size.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-08-19 09:46:43 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-08-19 10:16:23 +0200
commit838e336594e410898667fa06b15f1116a3b586fd (patch)
tree1520155493fabef45ab3b5d59f396c42f7968713 /prog/size.go
parent33b9e777cbaf25d5ac727783aedddb382c97338f (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/size.go')
-rw-r--r--prog/size.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/size.go b/prog/size.go
index f00fd56b1..11f7cf835 100644
--- a/prog/size.go
+++ b/prog/size.go
@@ -24,7 +24,7 @@ func generateSize(arg Arg, lenType *sys.LenType) Arg {
if lenType.ByteSize != 0 {
return constArg(lenType, a.Size()/lenType.ByteSize)
} else {
- return constArg(lenType, uintptr(len(a.Inner)))
+ return constArg(lenType, uint64(len(a.Inner)))
}
default:
if lenType.ByteSize != 0 {