-
Notifications
You must be signed in to change notification settings - Fork 7
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
Missing parentheses in cast #1
Comments
thanks for the bug report. do you want to make a PR to fix this? |
fixed in the "dev" branch now, can you confirm? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When decompiling a
cast
it seems that the outer parentheses are optimised away.Example:
fun test(a: u64): u256 { (a as u256) } // decompiles to fun test(arg0: u64) : u256 { arg0 as u256 }
When a cast is not the outer operator it is decompiled correctly:
fun test(a: u64): u256 { ((a as u128) as u256) } // decompiles to fun test(arg0: u64) : u256 { (arg0 as u128) as u256 }
The text was updated successfully, but these errors were encountered: