Fix incorrect attribute placement on fixed::operator/

Function attributes should be placed in the function declaration, not
definition.
This commit is contained in:
Myles Busig 2024-08-03 16:15:17 -06:00
parent 61e963e525
commit 82d6d64829
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ public:
* *
* Placed in IWRAM * Placed in IWRAM
*/ */
fixed operator/(fixed rhs) const; GBA_IWRAM fixed operator/(fixed rhs) const;
fixed& operator/=(fixed rhs) { fixed& operator/=(fixed rhs) {
*this = *this / rhs; *this = *this / rhs;
return *this; return *this;

View File

@ -6,7 +6,7 @@ TARGET_ARM_MODE
namespace mtl { namespace mtl {
GBA_IWRAM fixed fixed::operator/(fixed rhs) const { fixed fixed::operator/(fixed rhs) const {
int32_t raw_result; int32_t raw_result;
asm( asm(
// This division implementation has two methods it can use. // This division implementation has two methods it can use.