aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-02-16 15:38:31 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-02-16 15:38:31 +0100
commitb08d537d57b90e3469ad293d89383ad8e4d9caee (patch)
treeadc1cf32aaeab56f31ee904d847a23c4f1f7c433 /src
parent58d34988518e04a279d1eba6225af54c4c8c2d78 (diff)
Just use 64 instead of UINT64_WIDTH
Diffstat (limited to 'src')
-rw-r--r--src/ahoy/emulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ahoy/emulator.c b/src/ahoy/emulator.c
index edb3512..ff7f97d 100644
--- a/src/ahoy/emulator.c
+++ b/src/ahoy/emulator.c
@@ -214,7 +214,7 @@ opexec(uint16_t op)
if (scr_row >= lengthof(c8.screen))
break;
- msk = ((uint64_t)spr_row << (UINT64_WIDTH - 8)) >> c8.V[x];
+ msk = ((uint64_t)spr_row << (64 - 8)) >> c8.V[x];
c8.V[0xF] = (bool)(c8.screen[scr_row] & msk);
c8.screen[scr_row] ^= msk;
}