From 525d226ca69c02804a829050440d633b6a672841 Mon Sep 17 00:00:00 2001 From: Blake Warner Date: Sat, 19 Feb 2022 08:37:22 -0500 Subject: [PATCH] stack overflow fix --- include/framerate.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/framerate.h b/include/framerate.h index 95c10611f..225a39b6e 100644 --- a/include/framerate.h +++ b/include/framerate.h @@ -540,32 +540,32 @@ static bool operator>=(s32 a, Timer 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 Timer operator*(s32 a, Timer b) { - return Timer(a) * b; + return b.operator*(a); } static Timer operator/(s32 a, Timer b) { - return Timer(a) / b; + return Timer(a).operator/(b); } static Timer operator+(s32 a, Timer b) { - return Timer(a) + b; + return b.operator+(a); } static Timer operator-(s32 a, Timer b) { - return Timer(a) - b; + return Timer(a).operator-(b); }