lkml.org 
[lkml]   [2003]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectFix types on inflate.c constants
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 */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.040 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site