1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Rando fix

This commit is contained in:
Brian Fiete 2019-11-19 13:53:00 -08:00
parent 68151e69ca
commit 59233cc996
2 changed files with 13 additions and 2 deletions

View file

@ -346,6 +346,12 @@ namespace System
}
}
[AttributeUsage(.Method)]
public struct CommutableAttribute : Attribute
{
}
[AttributeUsage(.Method | .Constructor)]
public struct ErrorAttribute : Attribute
{

View file

@ -176,7 +176,7 @@ namespace System
public int GetHashCode()
{
return (int)mVal;
return (int)(void*)mVal;
}
}
@ -377,7 +377,7 @@ namespace System
}
}
struct Int : int, IOpComparable, IOpAddable, IIsNaN
struct Int : int, IOpComparable, IOpAddable, IOpDividable, IIsNaN
{
public static int operator<=>(Int a, Int b)
{
@ -389,6 +389,11 @@ namespace System
return (int)a + (int)b;
}
public static Self operator/(Self a, Self b)
{
return (int)a / (int)b;
}
bool IIsNaN.IsNaN
{
[SkipCall]