From f12130a5280420d36872ab0a7717d160c768df46 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Wed, 7 Sep 2022 13:28:43 +0000 Subject: [PATCH] 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 Run-TryBot: Bryan Mills Reviewed-by: Michael Knyszek Auto-Submit: Bryan Mills Reviewed-by: Bryan Mills --- syncmap/map_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncmap/map_test.go b/syncmap/map_test.go index c883f17..bf69f50 100644 --- a/syncmap/map_test.go +++ b/syncmap/map_test.go @@ -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{})