winedump: Fix compilation warnings in 64-bit mode

Dmitry Timoshkov dmitry at codeweavers.com
Mon May 21 01:56:31 CDT 2007


Hello,

Changelog:
    winedump: Fix compilation warnings in 64-bit mode.

---
 tools/winedump/pdb.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/winedump/pdb.c b/tools/winedump/pdb.c
index 7ba7122..78a2953 100644
--- a/tools/winedump/pdb.c
+++ b/tools/winedump/pdb.c
@@ -266,14 +266,14 @@ static void pdb_dump_symbols(struct pdb_reader* reader)
         while (imp < (const PDB_SYMBOL_IMPORT*)last)
         {
             ptr = (const char*)imp + sizeof(*imp) + strlen(imp->filename);
-            printf("\tImport: %x\n"
+            printf("\tImport: %lx\n"
                    "\t\tUnknown1:      %08x\n"
                    "\t\tUnknown2:      %08x\n"
                    "\t\tTimeDateStamp: %08x\n"
                    "\t\tAge:           %08u\n"
                    "\t\tfile1:         %s\n"
                    "\t\tfile2:         %s\n",
-                   (const char*)imp - (const char*)first,
+                   (ULONG_PTR)((const char*)imp - (const char*)first),
                    imp->unknown1,
                    imp->unknown2,
                    imp->TimeDateStamp,
@@ -404,7 +404,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader)
         }
 
         file_name += strlen(file_name) + 1;
-        file = (char*)((DWORD)(file_name + strlen(file_name) + 1 + 3) & ~3);
+        file = (char*)((DWORD_PTR)(file_name + strlen(file_name) + 1 + 3) & ~3);
     }
     free((char*)symbols);
 }
-- 
1.5.1.6






More information about the wine-patches mailing list