Fix a couple of MSVC signed/unsigned warnings
Francois Gouget
fgouget at free.fr
Wed Aug 17 02:02:38 CDT 2005
Now there's MSVC issues only a million minus 2 signed/unsigned warnings.
At least I checked with gcc 4.0 and it is happy with the change.
Changelog:
* dlls/ntdll/tests/info.c
Francois Gouget <fgouget at free.fr>
Fix a couple of MSVC signed/unsigned warnings.
--
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
Before you criticize someone, walk a mile in his shoes.
That way, if he gets angry, he'll be a mile away - and barefoot.
-------------- next part --------------
Index: dlls/ntdll/tests/info.c
===================================================================
RCS file: /var/cvs/wine/dlls/ntdll/tests/info.c,v
retrieving revision 1.15
diff -u -p -r1.15 info.c
--- dlls/ntdll/tests/info.c 22 Jul 2005 19:48:16 -0000 1.15
+++ dlls/ntdll/tests/info.c 17 Aug 2005 06:51:21 -0000
@@ -216,7 +323,7 @@ static void test_query_process(void)
DWORD status;
DWORD last_pid;
ULONG ReturnLength;
- int i = 0, j = 0, k = 0;
+ int i = 0, k = 0;
int is_nt = 0;
SYSTEM_BASIC_INFORMATION sbi;
@@ -297,6 +404,7 @@ static void test_query_process(void)
if (!is_nt)
{
+ DWORD j;
for ( j = 0; j < spi->dwThreadCount; j++)
{
k++;
@@ -362,8 +470,7 @@ static void test_query_module(void)
{
DWORD status;
ULONG ReturnLength;
- DWORD ModuleCount;
- int i;
+ ULONG ModuleCount, i;
ULONG SystemInformationLength = sizeof(SYSTEM_MODULE_INFORMATION);
SYSTEM_MODULE_INFORMATION* smi = HeapAlloc(GetProcessHeap(), 0, SystemInformationLength);
@@ -389,7 +496,7 @@ static void test_query_module(void)
/* Loop through all the modules/drivers, Wine doesn't get here (yet) */
for (i = 0; i < ModuleCount ; i++)
{
- ok( i == sm->Id, "Id (%d) should have matched %d\n", sm->Id, i);
+ ok( i == sm->Id, "Id (%d) should have matched %lu\n", sm->Id, i);
sm++;
}
More information about the wine-patches
mailing list