From a28ea3865385e519026224076b8dc479e13010a0 Mon Sep 17 00:00:00 2001 From: glx Date: Thu, 8 May 2008 13:20:54 +0000 Subject: (svn r13008) -Fix [FS#1997]: silence some MSVC x64 warnings --- src/win32.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/win32.cpp') diff --git a/src/win32.cpp b/src/win32.cpp index 5f3a1388a..e2f010fff 100644 --- a/src/win32.cpp +++ b/src/win32.cpp @@ -206,16 +206,15 @@ static char *PrintModuleList(char *output) HMODULE modules[100]; DWORD needed; BOOL res; - int count, i; HANDLE proc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, GetCurrentProcessId()); if (proc != NULL) { res = EnumProcessModules(proc, modules, sizeof(modules), &needed); CloseHandle(proc); if (res) { - count = min(needed / sizeof(HMODULE), lengthof(modules)); + size_t count = min(needed / sizeof(HMODULE), lengthof(modules)); - for (i = 0; i != count; i++) output = PrintModuleInfo(output, modules[i]); + for (size_t i = 0; i != count; i++) output = PrintModuleInfo(output, modules[i]); return output; } } -- cgit v1.2.3-70-g09d2