X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_guts.c;h=0ab8d8a051dcf81706e0f6ffce91e167ba144fe8;hp=7d9fd4122669909035080897c9dcb2bc2df35e9f;hb=6eceb5b64c0f77ca1cde968025e50a4f3f69f311;hpb=c1e92ca15954ff578e1baae827d9f76077ac3e63 diff --git a/yaffs_guts.c b/yaffs_guts.c index 7d9fd41..0ab8d8a 100644 --- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -13,7 +13,7 @@ */ const char *yaffs_guts_c_version = - "$Id: yaffs_guts.c,v 1.27 2005-12-20 04:02:18 charles Exp $"; + "$Id: yaffs_guts.c,v 1.28 2006-02-02 22:14:44 charles Exp $"; #include "yportenv.h" @@ -335,6 +335,7 @@ static Y_INLINE int yaffs_StillSomeChunkBits(yaffs_Device * dev, int blk) static Y_INLINE int yaffs_HashFunction(int n) { + n = abs(n); return (n % YAFFS_NOBJECT_BUCKETS); }