aboutsummaryrefslogtreecommitdiff
path: root/source/spc700.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/spc700.c')
-rw-r--r--source/spc700.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/spc700.c b/source/spc700.c
index 2607e1a..904c429 100644
--- a/source/spc700.c
+++ b/source/spc700.c
@@ -231,7 +231,7 @@ APUSetZN8 ((uint8) Int16);
#else
#define PushW(w)\
*(IAPU.RAM + 0xff + IAPU.Registers.S) = w;\
- *(IAPU.RAM + 0x100 + IAPU.Registers.S) = (w >> 8);\
+ *(IAPU.RAM + 0x100 + IAPU.Registers.S) = ((w) >> 8);\
IAPU.Registers.S -= 2;
#define PopW(w)\
IAPU.Registers.S += 2; \