]> git.draconx.ca Git - cdecl99.git/commit
tests: Improve RNG compatibility with old compilers.
authorNick Bowler <nbowler@draconx.ca>
Sun, 7 Jan 2024 01:42:03 +0000 (20:42 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 7 Jan 2024 01:48:51 +0000 (20:48 -0500)
commit0a1c8a90e23304220f6602e98aba5f891a1350b2
treeb7bf752d3484b03d7f5853d7b8b3a64988aba465
parentdd59ec37f1b1594b41e0ad728c7af7e3fe54c562
tests: Improve RNG compatibility with old compilers.

Some C89 compilers with 32-bit longs won't automatically widen integer
constants to (unsigned) long long in order to represent values that
don't fit in an (unsigned) long, even if those compilers otherwise
support 64-bit long long.

The "ll" and "ull" suffixes seem to get things working.
t/rng.c