home: hub: 9ficl

Download patch

ref: 4bcb1ffc8eddcae2e20f3c14e139e1d3c78a85d6
parent: b3762ebf39c497b58af336c71cf484c66ee7a015
author: asau <asau@ficl.sf.net>
date: Tue Oct 26 06:19:58 CDT 2010

LZ token is 32-bit value, use uint32_t instead of unsigned long to calculate its width.

--- a/lzcompress.c
+++ b/lzcompress.c
@@ -85,7 +85,7 @@
 			}
 
 		input = ficlNetworkUnsigned32(input);
-		inputPosition = (sizeof(unsigned long) * 8) - (length * 8);
+		inputPosition = (sizeof(uint32_t) * 8) - (length * 8);
 		bitsOffset;
 
 		data[(*byteOffset)++] = (unsigned char)id;