[PATCH] makedep: Use an unsigned constant in hash_filename.
Matteo Bruni
mbruni at codeweavers.com
Tue Mar 1 17:53:58 CST 2016
This fixes a "warning: this decimal constant is unsigned only in ISO C90"
I get with gcc 4.9.3.
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
tools/makedep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/makedep.c b/tools/makedep.c
index 298ec04..8cbba1b 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -729,7 +729,7 @@ static char *get_line( FILE *file )
static unsigned int hash_filename( const char *name )
{
/* FNV-1 hash */
- unsigned int ret = 2166136261;
+ unsigned int ret = 2166136261u;
while (*name) ret = (ret * 16777619) ^ *name++;
return ret % HASH_SIZE;
}
--
2.4.10
More information about the wine-patches
mailing list