aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/map_test.go
diff options
context:
space:
mode:
authorCarlo Alberto Ferraris <cafxx@strayorange.com>2021-07-25 23:15:15 +0000
committerAustin Clements <austin@google.com>2021-09-02 13:52:06 +0000
commita35c5c98c0487f93d70b468483f2ca8e0d698bb7 (patch)
tree7cf7feeb47e2c359376519fcd53569948be48f1c /src/runtime/map_test.go
parent90ed541149c781a96b86060a7618f73dcf347f28 (diff)
downloadgo-a35c5c98c0487f93d70b468483f2ca8e0d698bb7.tar.xz
runtime: constify a test variable
Simple cleanup, no functionality change. Change-Id: I8eceda4496a396e0117a0a601186c653982fb004 GitHub-Last-Rev: 58defc575e5834a3685bbb8179fdee4afa8d8fc7 GitHub-Pull-Request: golang/go#47389 Reviewed-on: https://go-review.googlesource.com/c/go/+/337289 Reviewed-by: Austin Clements <austin@google.com> Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/runtime/map_test.go')
-rw-r--r--src/runtime/map_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/map_test.go b/src/runtime/map_test.go
index 24556b4093..f78cad5a77 100644
--- a/src/runtime/map_test.go
+++ b/src/runtime/map_test.go
@@ -473,7 +473,7 @@ func TestMapNanGrowIterator(t *testing.T) {
nan := math.NaN()
const nBuckets = 16
// To fill nBuckets buckets takes LOAD * nBuckets keys.
- nKeys := int(nBuckets * *runtime.HashLoad)
+ nKeys := int(nBuckets * runtime.HashLoad)
// Get map to full point with nan keys.
for i := 0; i < nKeys; i++ {