We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Rust, integer division might unexpectedly result with 0:
0
let a: u32 = 2; let b: u32 = 4; let c: u32 = a / b * 8; // c == 0
The user is intended to write the following:
let a: u32 = 2; let b: u32 = 4; let c: u32 = a * 8 / b; // c == 4
Reference: slither documentation.
The text was updated successfully, but these errors were encountered:
Add skeleton and tests for the lint
7a063bd
Will close use-ink#2073
jubnzv
No branches or pull requests
In Rust, integer division might unexpectedly result with
0
:The user is intended to write the following:
Reference: slither documentation.
The text was updated successfully, but these errors were encountered: