Fix warning in hash calculation
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 31 Jan 2011 11:18:06 +0000 (12:18 +0100)
committerMiklos 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

index d4046509a1103e620c572a7628ce77090ac7b767..9a4a1c520eae063e5fb83220c2b36fc8285dd44a 100644 (file)
@@ -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 * 2654435761U) % f->id_table.size;
        uint64_t oldhash = hash % (f->id_table.size / 2);
 
        if (oldhash >= f->id_table.split)