From 7472fa441af6426a9a7307cf43f666666bef20a4 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Mon, 21 May 2007 15:56:31 +0900 Subject: [PATCH] winedump: Fix compilation warnings in 64-bit mode. --- tools/winedump/pdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/winedump/pdb.c b/tools/winedump/pdb.c index 7ba7122c3bc..78a295333cb 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); }