mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +00:00
fixes #254
This commit is contained in:
parent
26878425e8
commit
4dd59188fa
1 changed files with 9 additions and 0 deletions
|
|
@ -522,6 +522,15 @@ namespace Cosmos.IL2CPU.ILOpCodes {
|
||||||
if (!StackPopTypes.Contains(null))
|
if (!StackPopTypes.Contains(null))
|
||||||
{
|
{
|
||||||
// PopTypes set, but PushType not yet, so fill it.
|
// PopTypes set, but PushType not yet, so fill it.
|
||||||
|
|
||||||
|
if ((StackPopTypes[0] == typeof(bool) && StackPopTypes[1] == typeof(Int32)) ||
|
||||||
|
(StackPopTypes[0] == typeof(Int32) && StackPopTypes[1] == typeof(bool)))
|
||||||
|
{
|
||||||
|
StackPushTypes[0] = typeof(Int32);
|
||||||
|
aSituationChanged = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ((StackPopTypes[0] == typeof (IntPtr) && StackPopTypes[1] == typeof (UInt32*))
|
if ((StackPopTypes[0] == typeof (IntPtr) && StackPopTypes[1] == typeof (UInt32*))
|
||||||
|| (StackPopTypes[0] == typeof (uint*) && StackPopTypes[1] == typeof (IntPtr)))
|
|| (StackPopTypes[0] == typeof (uint*) && StackPopTypes[1] == typeof (IntPtr)))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue