From d0557bad3e96248b8391303a10fcf04a05533d0e Mon Sep 17 00:00:00 2001 From: Madeline Busig Date: Fri, 2 Aug 2024 23:26:24 -0600 Subject: [PATCH] Fix incorrect fixed point division result Division was not returning the result as raw. --- src/gba/fixed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/fixed.cpp b/src/gba/fixed.cpp index a65bb46..5e70012 100644 --- a/src/gba/fixed.cpp +++ b/src/gba/fixed.cpp @@ -51,7 +51,7 @@ GBA_IWRAM fixed fixed::operator/(fixed rhs) const { [d] "r" (rhs.x) : "r0", "r1", "r2", "r3" ); - return raw_result; + return from_raw(raw_result); } } // namespace mtl