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

Raise warning on imposible conditions with uintXX functions #23

Open
plusvic opened this issue May 6, 2023 · 0 comments
Open

Raise warning on imposible conditions with uintXX functions #23

plusvic opened this issue May 6, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@plusvic
Copy link
Member

plusvic commented May 6, 2023

This condition is an impossible one: uint8(0) == 0xABCDE. As uint8 returns a single byte, the maximum possible result is 0xFF or 255. The same occurs with uint16 and uint32.

A condition like this could raise a warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant