From be9dc6f3731200e9364af990ff5b19e24ee53003 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 14 Feb 2024 12:42:38 +0100 Subject: Prefer UINT64_WIDTH to literal ‘64’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ahoy/emulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3