Matteo Bruni : makedep: Use an unsigned constant in hash_filename.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Mar 2 11:26:09 CST 2016


Module: wine
Branch: master
Commit: 5cb8f0d0dd7684e67069013e57be4b9aa4b4c1c8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5cb8f0d0dd7684e67069013e57be4b9aa4b4c1c8

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Wed Mar  2 00:53:58 2016 +0100

makedep: Use an unsigned constant in hash_filename.

This fixes a "warning: this decimal constant is unsigned only in ISO
C90" with gcc 4.9.3.

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;
 }




More information about the wine-cvs mailing list