projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c1e92ca
)
Fix negative hash problem
author
charles
<charles>
Thu, 2 Feb 2006 22:14:44 +0000
(22:14 +0000)
committer
charles
<charles>
Thu, 2 Feb 2006 22:14:44 +0000
(22:14 +0000)
yaffs_guts.c
patch
|
blob
|
history
diff --git
a/yaffs_guts.c
b/yaffs_guts.c
index 7d9fd4122669909035080897c9dcb2bc2df35e9f..0ab8d8a051dcf81706e0f6ffce91e167ba144fe8 100644
(file)
--- a/
yaffs_guts.c
+++ b/
yaffs_guts.c
@@
-13,7
+13,7
@@
*/
const char *yaffs_guts_c_version =
*/
const char *yaffs_guts_c_version =
- "$Id: yaffs_guts.c,v 1.2
7 2005-12-20 04:02:18
charles Exp $";
+ "$Id: yaffs_guts.c,v 1.2
8 2006-02-02 22:14:44
charles Exp $";
#include "yportenv.h"
#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)
{
static Y_INLINE int yaffs_HashFunction(int n)
{
+ n = abs(n);
return (n % YAFFS_NOBJECT_BUCKETS);
}
return (n % YAFFS_NOBJECT_BUCKETS);
}