You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Buckets.max can never be larger than 255 even though the math allows for larger numbers. This is because the type of Buckets.max is set to uint8. Obviously, if this behavior is intended, feel free to close this.
The math for setting Buckets.max is:
(1<<bucketSize) -1
where bucketSize is a uint8.
(1 << bucketSize) - 1 will have these outputs given a uint8:
I'm not sure what the best solution would be (or even if Buckets.max allowing nothing larger than 255 is even a problem). Should Buckets.max be changed to a uint? A uint64? I'm not that familiar with what maximum, if any, should be enforced on Buckets.max.
The text was updated successfully, but these errors were encountered:
Buckets.max
can never be larger than255
even though the math allows for larger numbers. This is because the type ofBuckets.max
is set touint8
. Obviously, if this behavior is intended, feel free to close this.The math for setting
Buckets.max
is:where
bucketSize
is auint8
.(1 << bucketSize) - 1
will have these outputs given auint8
:Anything past
64
would overflow auint64
.I'm not sure what the best solution would be (or even if
Buckets.max
allowing nothing larger than255
is even a problem). ShouldBuckets.max
be changed to auint
? Auint64
? I'm not that familiar with what maximum, if any, should be enforced onBuckets.max
.The text was updated successfully, but these errors were encountered: