aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stkframe.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/stkframe.go')
-rw-r--r--src/runtime/stkframe.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/stkframe.go b/src/runtime/stkframe.go
index bfd9eac2b0..a2f40c92d5 100644
--- a/src/runtime/stkframe.go
+++ b/src/runtime/stkframe.go
@@ -143,7 +143,7 @@ func (frame *stkframe) argMapInternal() (argMap bitvector, hasReflectStackObj bo
if !retValid {
// argMap.n includes the results, but
// those aren't valid, so drop them.
- n := int32((uintptr(mv.argLen) &^ (goarch.PtrSize - 1)) / goarch.PtrSize)
+ n := int32((mv.argLen &^ (goarch.PtrSize - 1)) / goarch.PtrSize)
if n < argMap.n {
argMap.n = n
}