Fixed an infinite recursion in the implicit conversions of the working types

This commit is contained in:
upthorn 2018-12-23 04:25:08 -08:00
parent b9d35399b7
commit 34c207ff38
4 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ namespace BizHawk.Emulation.Common.WorkingTypes
public const Byte MinValue = Byte.MinValue;
public static implicit operator wbyte(uint value)
{
return value;
return new wbyte(value);
}
public static implicit operator byte(wbyte value)
{

View File

@ -15,7 +15,7 @@ namespace BizHawk.Emulation.Common.WorkingTypes
public const SByte MinValue = SByte.MinValue;
public static implicit operator wsbyte(int value)
{
return value;
return new wsbyte(value);
}
public static implicit operator SByte(wsbyte value)
{

View File

@ -15,7 +15,7 @@ namespace BizHawk.Emulation.Common.WorkingTypes
public const Int16 MinValue = Int16.MinValue;
public static implicit operator wshort(int value)
{
return value;
return new wshort(value);
}
public static implicit operator Int16(wshort value)
{

View File

@ -16,7 +16,7 @@ namespace BizHawk.Emulation.Common.WorkingTypes
public const UInt16 MinValue = UInt16.MinValue;
public static implicit operator wushort(uint value)
{
return value;
return new wushort(value);
}
public static implicit operator ushort(wushort value)
{