From 0dbbe38044a8fe48fc109f6cf1f8dabe301a2a72 Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Tue, 1 Oct 2024 12:05:21 -0400 Subject: [PATCH] Fix tvOS build --- snes/smp/core/registers.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snes/smp/core/registers.hpp b/snes/smp/core/registers.hpp index b033c42..3da86c0 100644 --- a/snes/smp/core/registers.hpp +++ b/snes/smp/core/registers.hpp @@ -12,9 +12,9 @@ struct flag_t { return data; } - inline unsigned operator|=(uint8 data) { return operator=(operator unsigned() | data); } - inline unsigned operator^=(uint8 data) { return operator=(operator unsigned() ^ data); } - inline unsigned operator&=(uint8 data) { return operator=(operator unsigned() & data); } + inline unsigned operator|=(uint8 data) { return (*this)=(operator unsigned() | data); } + inline unsigned operator^=(uint8 data) { return (*this)=(operator unsigned() ^ data); } + inline unsigned operator&=(uint8 data) { return (*this)=(operator unsigned() & data); } }; struct word_t {