From 6bb0b087368b0984ab5eeffa1d215010a5fe7a88 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 16 Feb 2024 15:39:16 +0100 Subject: Use UINT64_C() instead of a cast to uint64_t --- src/ahoy/gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ahoy/gui.c b/src/ahoy/gui.c index b50e388..a052a39 100644 --- a/src/ahoy/gui.c +++ b/src/ahoy/gui.c @@ -91,7 +91,7 @@ windrw(void) noclr: for (size_t i = 0; i < lengthof(c8.screen); i++) { for (size_t j = 64; j-- > 0;) { - bool set = ((uint64_t)1 << j) & c8.screen[i]; + bool set = (UINT64_C(1) << j) & c8.screen[i]; r.x = cols[j] * SCR_SCALE; r.y = i * SCR_SCALE; if (set) -- cgit v1.2.3