mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Fix types on inflate.c constants
@ 2003-05-15  3:31 davej
  0 siblings, 0 replies; only message in thread
From: davej @ 2003-05-15  3:31 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

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 */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-15  3:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-15  3:31 Fix types on inflate.c constants davej

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®