]> git.draconx.ca Git - dxcommon.git/commit
copysym: Improve compatibility with old compilers.
authorNick Bowler <nbowler@draconx.ca>
Sat, 6 Jan 2024 21:51:25 +0000 (16:51 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 7 Jan 2024 01:46:42 +0000 (20:46 -0500)
commitaaaacebf1f04c364803f308c3b3e9670e216da09
tree8c09e4498b615ca6bc1f99d88f8406ce1a91daf8
parent4f94394a1e9aef0eaa98b52fe8421b62e3779682
copysym: Improve 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/copysym.c