Fixed an infinite recursion in the implicit conversions of the working types
This commit is contained in:
parent
b9d35399b7
commit
34c207ff38
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue