-
Notifications
You must be signed in to change notification settings - Fork 148
Conversation
Codecov Report
@@ Coverage Diff @@
## master-2.x #167 +/- ##
===========================================
Coverage 59.03% 59.03%
===========================================
Files 17 17
Lines 1572 1572
===========================================
Hits 928 928
Misses 644 644
Continue to review full report at Codecov.
|
src/neo-vm/ExecutionEngine.cs
Outdated
@@ -22,7 +22,7 @@ public class ExecutionEngine : IDisposable | |||
/// <summary> | |||
/// Min value for SHL and SHR | |||
/// </summary> | |||
public virtual int Min_SHL_SHR => -256; | |||
public virtual int Min_SHL_SHR => 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can change both variables to short
, and we should check if is a breaking change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a breaking change, @vncoelho will make this sure for us ;)
short
or int
is the same here.
we need to check the storages after this pr |
Why we need this? |
static void Main(string[] args)
{
BigInteger b0 = 1; //1
BigInteger b1 = b0 << 1; //2
BigInteger b2 = b1 << -1; //1
} |
This is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not need.
Adding more tests here. |
Correct Erik! Sorry for taking your time... some compiler situation tricked me. It converts automatically -1 on shift to 31... took some time to notice it. In other situations it seems to break compiling. I'll open an issue on neo-compiler project.
|
Reducing limits and adding more tests for shifts.