Alexandre Julliard : libwine: Avoid compiler warnings for Mingw builds.
Alexandre Julliard
julliard at winehq.org
Tue Jan 17 13:45:28 CST 2012
Module: wine
Branch: master
Commit: b46ea8a5b89e2286c9fb7e8e7b638c36acc4f554
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b46ea8a5b89e2286c9fb7e8e7b638c36acc4f554
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Jan 17 15:00:25 2012 +0100
libwine: Avoid compiler warnings for Mingw builds.
---
libs/wine/config.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libs/wine/config.c b/libs/wine/config.c
index d614825..035c268 100644
--- a/libs/wine/config.c
+++ b/libs/wine/config.c
@@ -217,12 +217,12 @@ static void init_server_dir( dev_t dev, ino_t ino )
sprintf( server_dir, "%s%u%s", server_root_prefix, uid, server_dir_prefix );
p = server_dir + strlen(server_dir);
- if (sizeof(dev) > sizeof(unsigned long) && dev > ~0UL)
+ if (dev != (unsigned long)dev)
p += sprintf( p, "%lx%08lx-", (unsigned long)((unsigned long long)dev >> 32), (unsigned long)dev );
else
p += sprintf( p, "%lx-", (unsigned long)dev );
- if (sizeof(ino) > sizeof(unsigned long) && ino > ~0UL)
+ if (ino != (unsigned long)ino)
sprintf( p, "%lx%08lx", (unsigned long)((unsigned long long)ino >> 32), (unsigned long)ino );
else
sprintf( p, "%lx", (unsigned long)ino );
More information about the wine-cvs
mailing list