Merge pull request #431 from TheCool1James/master

Fixed (short-short) op bug
This commit is contained in:
Charles Betros 2016-08-10 13:55:59 -05:00 committed by GitHub
commit d025c649bc

View file

@ -705,6 +705,13 @@ namespace Cosmos.IL2CPU.ILOpCodes {
aSituationChanged = true;
return;
}
//Changed
if (StackPopTypes[0] == typeof(short) && StackPopTypes[1] == typeof(short))
{
StackPushTypes[0] = typeof(short);
aSituationChanged = true;
return;
}
if (StackPopTypes[0] == typeof(long) && StackPopTypes[1] == typeof(long))
{
StackPushTypes[0] = typeof(long);