]> git.draconx.ca Git - rrace.git/commit
Improve RNG compatibility with old compilers.
authorNick Bowler <nbowler@draconx.ca>
Sun, 7 Jan 2024 03:14:42 +0000 (22:14 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 7 Jan 2024 03:22:28 +0000 (22:22 -0500)
commit1cc5fc775e2a5dbd41cb968fa141be6647d1282a
tree7b8833d1c311b1142ffa79f2e2e3a0ea74ed349f
parentb901702b893a6c7e0a964f2f5249a37fe0cf2805
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.
src/game.c