From b3a6dd48d09f4743f4d06426f8da0c371a2eb05b Mon Sep 17 00:00:00 2001 From: Madeline Busig Date: Sat, 3 Aug 2024 16:15:17 -0600 Subject: [PATCH] Fix incorrect attribute placement on fixed::operator/ Function attributes should be placed in the function declaration, not definition. --- include/mtl/fixed.hpp | 2 +- src/gba/fixed.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mtl/fixed.hpp b/include/mtl/fixed.hpp index 59e0a06..f634a03 100644 --- a/include/mtl/fixed.hpp +++ b/include/mtl/fixed.hpp @@ -149,7 +149,7 @@ public: * * Placed in IWRAM */ - fixed operator/(fixed rhs) const; + GBA_IWRAM fixed operator/(fixed rhs) const; fixed& operator/=(fixed rhs) { *this = *this / rhs; return *this; diff --git a/src/gba/fixed.cpp b/src/gba/fixed.cpp index 5e70012..d33deeb 100644 --- a/src/gba/fixed.cpp +++ b/src/gba/fixed.cpp @@ -6,7 +6,7 @@ TARGET_ARM_MODE namespace mtl { -GBA_IWRAM fixed fixed::operator/(fixed rhs) const { +fixed fixed::operator/(fixed rhs) const { int32_t raw_result; asm( // This division implementation has two methods it can use.