From 3fb4b32949bcb0d903969bd6851a712856c73836 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 15 Jun 2006 14:14:26 +0200 Subject: [PATCH] libwine: Fixed a compiler warning on MacOSX. --- libs/wine/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/wine/config.c b/libs/wine/config.c index 315804721d9..d287c5d7f6b 100644 --- a/libs/wine/config.c +++ b/libs/wine/config.c @@ -153,12 +153,12 @@ static void init_server_dir( dev_t dev, ino_t ino ) p = server_dir + strlen(server_dir); if (sizeof(dev) > sizeof(unsigned long) && dev > ~0UL) - p += sprintf( p, "%lx%08lx-", (unsigned long)(dev >> 32), (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) - sprintf( p, "%lx%08lx", (unsigned long)(ino >> 32), (unsigned long)ino ); + sprintf( p, "%lx%08lx", (unsigned long)((unsigned long long)ino >> 32), (unsigned long)ino ); else sprintf( p, "%lx", (unsigned long)ino ); }