X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs%2F.git;a=blobdiff_plain;f=yaffs_guts.c;h=0a3f4435d1f6be85294e44d044d2c508bdc24f14;hp=fcb217ae850f3b4d98fc85abccac0c7a43684b26;hb=HEAD;hpb=f0494eb05c40ce19d74bedc92a020a743fbec08e diff --git a/yaffs_guts.c b/yaffs_guts.c index fcb217a..0a3f443 100644 --- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -14,7 +14,7 @@ */ //yaffs_guts.c -const char *yaffs_guts_c_version="$Id: yaffs_guts.c,v 1.44 2005-11-07 07:03:02 charles Exp $"; +const char *yaffs_guts_c_version="$Id: yaffs_guts.c,v 1.45 2006-02-02 22:22:57 charles Exp $"; #include "yportenv.h" @@ -181,6 +181,7 @@ static __inline__ yaffs_BlockInfo* yaffs_GetBlockInfo(yaffs_Device *dev, int bl static __inline__ int yaffs_HashFunction(int n) { + n = abs(n); return (n % YAFFS_NOBJECT_BUCKETS); }