diff options
| author | Tyge Løvset <[email protected]> | 2023-05-01 10:00:07 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-05-01 10:02:12 +0200 |
| commit | f916573e2b3652d9b3f6fb82aadd5f2cfb3ce2fe (patch) | |
| tree | 22283c2d74f2cac441ce04b3106e144f440b8137 /misc/examples/birthday.c | |
| parent | 49e7d9cc0a888b0b19aa4e737d55a2bc33bec824 (diff) | |
| download | STC-modified-f916573e2b3652d9b3f6fb82aadd5f2cfb3ce2fe.tar.gz STC-modified-f916573e2b3652d9b3f6fb82aadd5f2cfb3ce2fe.zip | |
Remove warnings when using -Wextra.
Diffstat (limited to 'misc/examples/birthday.c')
| -rw-r--r-- | misc/examples/birthday.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/examples/birthday.c b/misc/examples/birthday.c index c301128a..2820c42f 100644 --- a/misc/examples/birthday.c +++ b/misc/examples/birthday.c @@ -13,8 +13,8 @@ static uint64_t seed = 12345; static void test_repeats(void) { enum {BITS = 46, BITS_TEST = BITS/2 + 2}; - const static uint64_t N = 1ull << BITS_TEST; - const static uint64_t mask = (1ull << BITS) - 1; + static const uint64_t N = 1ull << BITS_TEST; + static const uint64_t mask = (1ull << BITS) - 1; printf("birthday paradox: value range: 2^%d, testing repeats of 2^%d values\n", BITS, BITS_TEST); crand_t rng = crand_init(seed); |
