summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2009-12-14 02:05:14 +0000
committerroot <root>2009-12-14 02:05:14 +0000
commitf280629860026509e0fbec24f963b2e8ea7e431b (patch)
tree2e3226c0103497fa69a8631776cc004a51f370e9
parent2ed86fd870010355652c5e41b380ece4ddb8c9bd (diff)
*** empty log message ***
-rw-r--r--Changes3
-rw-r--r--cs/CLZF.cs2
2 files changed, 4 insertions, 1 deletions
diff --git a/Changes b/Changes
index 09581ff..faa6acd 100644
--- a/Changes
+++ b/Changes
@@ -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).
diff --git a/cs/CLZF.cs b/cs/CLZF.cs
index 4e1b5d5..710419a 100644
--- a/cs/CLZF.cs
+++ b/cs/CLZF.cs
@@ -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));
}
/*