Skip to content

Commit

Permalink
Cast to sbyte to ensure int conversion comes out signed.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Aug 19, 2024
1 parent 406638f commit 1540848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IKVM.ByteCode/Constant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static IntegerConstant Integer(bool value)

public static IntegerConstant Integer(byte value)
{
return new IntegerConstant(value);
return new IntegerConstant((sbyte)value);
}

public static IntegerConstant Integer(short value)
Expand Down

0 comments on commit 1540848

Please sign in to comment.