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
checked
-x
In inc operation, Neo-VM script and standard C# program will throw an Exception both if src overflowed:
inc
src
public static int Inc(int src) { return checked(++src); }
In -x operation, standard C# program will throw an Exception if src overflowed(src is -2147483648), but Neo-VM script not:
-2147483648
public static int Negative(int src) { return checked(-src); }
The text was updated successfully, but these errors were encountered:
This apparently a compiler bug, please fix it.
Sorry, something went wrong.
Better to merge #1205 first
#1205 was closed. Maybe it's time to handle many potential problems in simulating overflow.
"/" => (OpCode.DIV, false), int.MinValue / (-1) ?
"/" => (OpCode.DIV, false),
Yes, this also needs to be checked.
nan01ab
No branches or pull requests
In
inc
operation, Neo-VM script and standard C# program will throw an Exception both ifsrc
overflowed:In
-x
operation, standard C# program will throw an Exception ifsrc
overflowed(src
is-2147483648
), but Neo-VM script not:The text was updated successfully, but these errors were encountered: