Whamcloud - gitweb
Fix stupid bug; dx_hack_hash was left-shifted by one in CPP macro
authorTheodore Ts'o <tytso@mit.edu>
Tue, 12 Mar 2002 18:41:31 +0000 (13:41 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 12 Mar 2002 18:41:31 +0000 (13:41 -0500)
trap.

lib/ext2fs/dirhash.c

index 5f71c6d..87e86d9 100644 (file)
@@ -26,7 +26,7 @@ static ext2_dirhash_t dx_hack_hash (const char *name, int len)
                hash1 = hash0;
                hash0 = hash;
        }
-       return hash0;
+       return (hash0 << 1);
 }
 
 /*