summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2023-02-18 08:52:40 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2023-02-18 08:52:40 +0000
commit7d216f4b129c0778f469476f0fc6d786c7aa9304 (patch)
tree9697641dc7284bbe8788ab74ea6f75973fd9ffb5 /games
parent92d191e410f925cf3dfd884d485725414748334e (diff)
Put explicit ULL suffix to constants which won't fit in 32 bits.
Diffstat (limited to 'games')
-rw-r--r--games/random/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/random/random.c b/games/random/random.c
index 7da7117b430..6d060a25160 100644
--- a/games/random/random.c
+++ b/games/random/random.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: random.c,v 1.21 2022/08/23 06:35:53 tb Exp $ */
+/* $OpenBSD: random.c,v 1.22 2023/02/18 08:52:39 miod Exp $ */
/* $NetBSD: random.c,v 1.3 1995/04/22 07:44:05 cgd Exp $ */
/*
@@ -72,7 +72,7 @@ int
clz64(uint64_t x)
{
static const uint64_t mask[] = {
- 0xffffffff00000000, 0xffff0000, 0xff00, 0xf0, 0xc, 0x2,
+ 0xffffffff00000000ULL, 0xffff0000, 0xff00, 0xf0, 0xc, 0x2,
};
static const int zeroes[] = {
32, 16, 8, 4, 2, 1,