From: Theodore Ts'o Date: Tue, 12 Mar 2002 18:41:31 +0000 (-0500) Subject: Fix stupid bug; dx_hack_hash was left-shifted by one in CPP macro X-Git-Tag: E2FSPROGS-1.28-WIP-0626~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1acb01b4e28067a37c4f41e0a76df9f429fb417e;p=thirdparty%2Fe2fsprogs.git Fix stupid bug; dx_hack_hash was left-shifted by one in CPP macro trap. --- diff --git a/lib/ext2fs/dirhash.c b/lib/ext2fs/dirhash.c index 5f71c6d08..87e86d947 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); } /*