diff options
-rw-r--r-- | Changes | 3 | ||||
-rw-r--r-- | cs/CLZF.cs | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,3 +1,6 @@ + + - fixed hash calculation in C♯ version (Tiago Freitas Leal). + 3.5 Fri May 1 02:28:42 CEST 2009 - lzf_compress did sometimes write one octet past the given output buffer (analyzed and nice testcase by Salvatore Sanfilippo). @@ -138,7 +138,7 @@ namespace LZF.NET UInt32 IDX(UInt32 h) { - return ((h ^ (h << 5)) >> (int)(((3*8 - HLOG)) - h*5) & (HSIZE - 1)); + return ((((h ^ (h << 5)) >> (int) (3*8 - HLOG)) - h*5) & (HSIZE - 1)); } /* |