X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=lzindex%2Fhash.c;h=754f327d23666db7b66d62ff5694017e7e082601;hb=18a3c1f1b87744c78fde76f96c3e9cf43e137b36;hp=272fbeed0d1c4b0a3dc482505f728feab515332e;hpb=5d74bc076c9d15d607d183c16ff8468ea961a0f9;p=SXSI%2FTextCollection.git diff --git a/lzindex/hash.c b/lzindex/hash.c index 272fbee..754f327 100644 --- a/lzindex/hash.c +++ b/lzindex/hash.c @@ -8,9 +8,10 @@ hash createHash (uint n, uint vbits, float factor) - { hash H = malloc (sizeof(struct shash)); + { int i,N; if (n == 0) return NULL; + hash H = malloc (sizeof(struct shash)); N = n*factor; if (N <= n) N = n+1; H->size = (1 << bits(N-1)) - 1; H->bits = vbits;