From 1acb01b4e28067a37c4f41e0a76df9f429fb417e Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 12 Mar 2002 13:41:31 -0500 Subject: [PATCH] Fix stupid bug; dx_hack_hash was left-shifted by one in CPP macro trap. --- lib/ext2fs/dirhash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ext2fs/dirhash.c b/lib/ext2fs/dirhash.c index 5f71c6d..87e86d9 100644 --- a/lib/ext2fs/dirhash.c +++ b/lib/ext2fs/dirhash.c @@ -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); } /* -- 1.8.3.1