From c958643e37a52364c5d8059ccd1cadb7be1cb259 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Mon, 31 Jan 2011 12:18:06 +0100 Subject: [PATCH] Fix warning in hash calculation Fix the following warning: fuse.c:436: warning: this decimal constant is unsigned only in ISO C90 --- lib/fuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fuse.c b/lib/fuse.c index d404650..9a4a1c5 100644 --- 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 * 2654435761U) % f->id_table.size; uint64_t oldhash = hash % (f->id_table.size / 2); if (oldhash >= f->id_table.split) -- 2.30.2