Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Mar 9, 2020
1 parent b26a6ed commit fecb35e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Neo.Compiler.MSIL/MSIL/Conv_Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ private void _ConvertPushNumber(System.Numerics.BigInteger i, OpCode src, NeoMet
_Insert1(VM.OpCode.CONVERT, "", to, new byte[1] { (byte)VM.Types.StackItemType.Integer });
}
}

private void _ConvertPushBoolean(bool b, OpCode src, NeoMethod to)
{
if (!b)
Expand All @@ -112,6 +113,7 @@ private void _ConvertPushBoolean(bool b, OpCode src, NeoMethod to)
_Convert1by1(VM.OpCode.PUSH1, src, to);
_Insert1(VM.OpCode.CONVERT, "", to, new byte[1] { (byte)VM.Types.StackItemType.Boolean });
}

private void _ConvertPushDataArray(byte[] data, OpCode src, NeoMethod to)
{
byte prefixLen;
Expand Down

0 comments on commit fecb35e

Please sign in to comment.