From 2e837de83eee410d862d648e029766c835ade621 Mon Sep 17 00:00:00 2001 From: Blake Warner Date: Sat, 19 Feb 2022 08:53:36 -0500 Subject: [PATCH] stack overflow fix --- include/framerate.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/include/framerate.h b/include/framerate.h index 225a39b6e..0a5fd2b81 100644 --- a/include/framerate.h +++ b/include/framerate.h @@ -469,73 +469,73 @@ typedef Frame Counter; template bool operator<(T a, Frame b) { - return b >= a; + return b.operator>=(a); } template bool operator<=(T a, Frame b) { - return b > a; + return b.operator>(a); } template bool operator>(T a, Frame b) { - return b <= a; + return b.operator<=(a); } template bool operator>=(T a, Frame b) { - return b < a; + return b.operator<(a); } template bool operator==(T a, Frame b) { - return b == a; + return b.operator==(a); } template bool operator!=(T a, Frame b) { - return b != a; + return b.operator!=(a); } template Frame operator*(T a, Frame b) { - return Frame(a) * b; + return b.operator*(a); } template Frame operator/(T a, Frame b) { - return Frame(a) / b; + return Frame(a).operator/(b); } template Frame operator+(T a, Frame b) { - return Frame(a) + b; + return b.operator+(a); } template Frame operator-(T a, Frame b) { - return Frame(a) - b; + return Frame(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)