aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <thomas.voss@humanwave.nl> 2024-02-14 12:42:38 +0100
committerThomas Voss <thomas.voss@humanwave.nl> 2024-02-14 12:42:38 +0100
commitbe9dc6f3731200e9364af990ff5b19e24ee53003 (patch)
tree93c9bd70e62d46ad5d7b5a54450693d091d56d1f
parent96cb893e749c34df07b30c3eabceaaa217d405a3 (diff)
Prefer UINT64_WIDTH to literal ‘64’
-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 34e31ad..100d70c 100644
--- a/src/ahoy/emulator.c
+++ b/src/ahoy/emulator.c
@@ -241,7 +241,7 @@ opexec(uint16_t op)
if (scr_row >= lengthof(screen))
break;
- msk = ((uint64_t)spr_row << (64 - 8)) >> V[x];
+ msk = ((uint64_t)spr_row << (UINT64_WIDTH - 8)) >> V[x];
V[0xF] = screen[scr_row] & msk;
screen[scr_row] ^= msk;
}