x/sync/semaphore: newWeighted why n is int64 #27363
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Please answer these questions before submitting your issue. Thanks!
https://github.com/golang/sync/blob/master/semaphore/semaphore.go#L25
What version of Go are you using (
go version
)?1.10.4
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
use
semaphore.NewWeighted
What did you expect to see?
n
should be uint64, because uint64 is large enoughWhat did you see instead?
n
is int64The text was updated successfully, but these errors were encountered: