projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6646f6b
)
Fix warning in hash calculation
author
Miklos Szeredi
<mszeredi@suse.cz>
Mon, 31 Jan 2011 11:18:06 +0000
(12:18 +0100)
committer
Miklos Szeredi
<mszeredi@suse.cz>
Mon, 31 Jan 2011 11:18:06 +0000
(12:18 +0100)
Fix the following warning:
fuse.c:436: warning: this decimal constant is unsigned only in ISO C90
lib/fuse.c
patch
|
blob
|
history
diff --git
a/lib/fuse.c
b/lib/fuse.c
index d4046509a1103e620c572a7628ce77090ac7b767..9a4a1c520eae063e5fb83220c2b36fc8285dd44a 100644
(file)
--- a/
lib/fuse.c
+++ b/
lib/fuse.c
@@
-433,7
+433,7
@@
static void free_node_mem(struct fuse *f, struct node *node)
static size_t id_hash(struct fuse *f, fuse_ino_t ino)
{
- uint64_t hash = ((uint32_t) ino * 2654435761) % f->id_table.size;
+ uint64_t hash = ((uint32_t) ino * 2654435761
U
) % f->id_table.size;
uint64_t oldhash = hash % (f->id_table.size / 2);
if (oldhash >= f->id_table.split)