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

[Code]: Number literal constant is used, suggest using hex format #152

Open
0xOutOfGas opened this issue Sep 26, 2022 · 0 comments
Open
Labels
enhancement New feature or request
Milestone

Comments

@0xOutOfGas
Copy link

Framework version: v11
Description: U64 literal constant 18446744073709551615u64 is used in Bitwise.move. The decimal format is error-prone and difficult to recognize.
Code Location: sources/Bitwise.move, line 26

/// bit not: !x
public fun not(x: u64): u64 {
   (x ^ 18446744073709551615u64 as u64)
}
@0xOutOfGas 0xOutOfGas added the enhancement New feature or request label Sep 26, 2022
@jolestar jolestar added this to the v12 milestone Oct 11, 2022
@jolestar jolestar modified the milestones: v12, v13 Nov 11, 2022
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

2 participants