1
0
mirror of https://github.com/blawar/ooot.git synced 2024-06-30 16:29:55 +00:00

stack overflow fix

This commit is contained in:
Blake Warner 2022-02-19 08:53:36 -05:00
parent 525d226ca6
commit 2e837de83e

View File

@ -469,73 +469,73 @@ typedef Frame<s64> Counter;
template <class T> bool operator<(T a, Frame<T> b)
{
return b >= a;
return b.operator>=(a);
}
template <class T> bool operator<=(T a, Frame<T> b)
{
return b > a;
return b.operator>(a);
}
template <class T> bool operator>(T a, Frame<T> b)
{
return b <= a;
return b.operator<=(a);
}
template <class T> bool operator>=(T a, Frame<T> b)
{
return b < a;
return b.operator<(a);
}
template <class T> bool operator==(T a, Frame<T> b)
{
return b == a;
return b.operator==(a);
}
template <class T> bool operator!=(T a, Frame<T> b)
{
return b != a;
return b.operator!=(a);
}
template <class T> Frame<T> operator*(T a, Frame<T> b)
{
return Frame<T>(a) * b;
return b.operator*(a);
}
template <class T> Frame<T> operator/(T a, Frame<T> b)
{
return Frame<T>(a) / b;
return Frame<T>(a).operator/(b);
}
template <class T> Frame<T> operator+(T a, Frame<T> b)
{
return Frame<T>(a) + b;
return b.operator+(a);
}
template <class T> Frame<T> operator-(T a, Frame<T> b)
{
return Frame<T>(a) - b;
return Frame<T>(a).operator-(b);
}
static bool operator<(s32 a, Timer b)
{
return b >= a;
return b.operator>=(a);
}
static bool operator<=(s32 a, Timer b)
{
return b > a;
return b.operator>(a);
}
static bool operator>(s32 a, Timer b)
{
return b <= a;
return b.operator<=(a);
}
static bool operator>=(s32 a, Timer b)
{
return b < a;
return b.operator<(a);
}
static bool operator==(s32 a, Timer b)