From: davej@codemonkey.org.uk
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: Fix types on inflate.c constants
Date: Thu, 15 May 2003 04:31:02 +0100 [thread overview]
Message-ID: <200305150331.h4F3V2VH000536@deviant.impure.org.uk> (raw)
This patch from Alan went into 2.4 last august with the comment
"get the types right on the lib/inflate.c constants"
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/lib/inflate.c linux-2.5/lib/inflate.c
--- bk-linus/lib/inflate.c 2003-05-08 13:46:23.000000000 +0100
+++ linux-2.5/lib/inflate.c 2003-05-08 14:26:47.000000000 +0100
@@ -1015,7 +1015,7 @@ STATIC int inflate(void)
static ulg crc_32_tab[256];
static ulg crc; /* initialized in makecrc() so it'll reside in bss */
-#define CRC_VALUE (crc ^ 0xffffffffL)
+#define CRC_VALUE (crc ^ 0xffffffffUL)
/*
* Code to compute the CRC-32 table. Borrowed from
@@ -1055,7 +1055,7 @@ makecrc(void)
}
/* this is initialized here so this code could reside in ROM */
- crc = (ulg)0xffffffffL; /* shift register contents */
+ crc = (ulg)0xffffffffUL; /* shift register contents */
}
/* gzip flag byte */
reply other threads:[~2003-05-15 3:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200305150331.h4F3V2VH000536@deviant.impure.org.uk \
--to=davej@codemonkey.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®