aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-02-16 15:39:16 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-02-16 15:39:16 +0100
commit6bb0b087368b0984ab5eeffa1d215010a5fe7a88 (patch)
tree36c4749b349e4a3a5c42f725ca95db6ff4da7f3b
parent365c9ba4e223bd42e3e34839caaf4eb41c33c83a (diff)
Use UINT64_C() instead of a cast to uint64_t
-rw-r--r--src/ahoy/gui.c2
1 files changed, 1 insertions, 1 deletions
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)