syncmap: remove redundant type conversion

Change-Id: I32c367338e1ea95aaaaa8e891f5dfe4ab6c03913
GitHub-Last-Rev: a2b25df29ad89452b484bda107a0834d79f09310
GitHub-Pull-Request: golang/sync#18
Reviewed-on: https://go-review.googlesource.com/c/sync/+/429058
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
This commit is contained in:
cui fliter 2022-09-07 13:28:43 +00:00 committed by Gopher Robot
commit f12130a528

View file

@ -115,7 +115,7 @@ func TestConcurrentRange(t *testing.T) {
m := new(syncmap.Map)
for n := int64(1); n <= mapSize; n++ {
m.Store(n, int64(n))
m.Store(n, n)
}
done := make(chan struct{})