aboutsummaryrefslogtreecommitdiff
path: root/linux/lib/xz/xz_crc64.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2022-06-30 20:21:12 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2022-06-30 20:21:12 +0000
commit3d05661fa7ea2442a4a637c60e92df2b03557b51 (patch)
tree9a28bd71d24f4e421de1aa8cb0515365db4544b1 /linux/lib/xz/xz_crc64.c
parent442b7425c6da3ee6e0a16d65b5458a795dcc47d1 (diff)
Diffstat (limited to 'linux/lib/xz/xz_crc64.c')
-rw-r--r--linux/lib/xz/xz_crc64.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/linux/lib/xz/xz_crc64.c b/linux/lib/xz/xz_crc64.c
index ca1caee899ae..60c40f67e7cc 100644
--- a/linux/lib/xz/xz_crc64.c
+++ b/linux/lib/xz/xz_crc64.c
@@ -4,7 +4,7 @@
* This file is similar to xz_crc32.c. See the comments there.
*
* Authors: Lasse Collin <lasse.collin@tukaani.org>
- * Igor Pavlov <http://7-zip.org/>
+ * Igor Pavlov <https://7-zip.org/>
*
* This file has been put into the public domain.
* You can do whatever you want with this file.
@@ -20,7 +20,11 @@ STATIC_RW_DATA uint64_t xz_crc64_table[256];
XZ_EXTERN void xz_crc64_init(void)
{
- const uint64_t poly = 0xC96C5795D7870F42;
+ /*
+ * The ULL suffix is needed for -std=gnu89 compatibility
+ * on 32-bit platforms.
+ */
+ const uint64_t poly = 0xC96C5795D7870F42ULL;
uint32_t i;
uint32_t j;