Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should use the standard math.MaxUint8, etc. #1690

Open
github-actions bot opened this issue Oct 25, 2024 · 0 comments
Open

should use the standard math.MaxUint8, etc. #1690

github-actions bot opened this issue Oct 25, 2024 · 0 comments

Comments

@github-actions
Copy link

Line: 24

// no more than 50 KiB of overhead but is likely much less)
NetworkSizeLimit = 2_044_723 // 1.95 MiB
// FIXME: should use the standard math.MaxUint8, etc.
MaxUint8 = ^uint8(0)
MaxUint16 = ^uint16(0)
MaxUint8Offset = 7
MaxUint = ^uint(0)
MaxInt = int(MaxUint >> 1)
MaxUint64Offset = 63
MaxUint64 = ^uint64(0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants