From aaaacebf1f04c364803f308c3b3e9670e216da09 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sat, 6 Jan 2024 16:51:25 -0500 Subject: [PATCH] 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/copysym.c b/src/copysym.c index 6ff93f3..3128c3e 100644 --- a/src/copysym.c +++ b/src/copysym.c @@ -1,5 +1,5 @@ /* - * Copyright © 2023 Nick Bowler + * Copyright © 2023-2024 Nick Bowler * * Helper function to output the copyright symbol in a specified encoding. * @@ -137,7 +137,7 @@ const char *copyright_symbol(const char *charset) * codes array for the corresponding index in t1, except that * ISO-8859 matches the special value '2' (handled below). */ - dx_u64 results = 0x001921fb13777511; + dx_u64 results = 0x001921fb13777511ull; const char (*m1)[sizeof *t1]; unsigned x, cindex; -- 2.43.2