Commit d0d28b96 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

ntdll: Avoid signed-unsigned integer comparisons.

parent 668cfb1c
......@@ -145,7 +145,7 @@ struct file_identity
};
static struct file_identity ignored_files[MAX_IGNORED_FILES];
static int ignored_files_count;
static unsigned int ignored_files_count;
union file_directory_info
{
......
......@@ -1166,7 +1166,7 @@ void fill_cpu_info(void)
static inline BOOL logical_proc_info_add_by_id(SYSTEM_LOGICAL_PROCESSOR_INFORMATION *data,
DWORD *len, DWORD max_len, LOGICAL_PROCESSOR_RELATIONSHIP rel, DWORD id, DWORD proc)
{
int i;
DWORD i;
for(i=0; i<*len; i++)
{
......@@ -1192,7 +1192,7 @@ static inline BOOL logical_proc_info_add_by_id(SYSTEM_LOGICAL_PROCESSOR_INFORMAT
static inline BOOL logical_proc_info_add_cache(SYSTEM_LOGICAL_PROCESSOR_INFORMATION *data,
DWORD *len, DWORD max_len, ULONG_PTR mask, CACHE_DESCRIPTOR *cache)
{
int i;
DWORD i;
for(i=0; i<*len; i++)
{
......@@ -1891,7 +1891,7 @@ NTSTATUS WINAPI NtQuerySystemInformation(
if (cpus == 0)
{
static int i = 1;
int n;
unsigned int n;
cpus = min(NtCurrentTeb()->Peb->NumberOfProcessors, out_cpus);
len = sizeof(SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION) * cpus;
sppi = RtlAllocateHeap(GetProcessHeap(), 0, len);
......
......@@ -1091,7 +1091,8 @@ NTSTATUS NTDLL_wait_for_multiple_objects( UINT count, const HANDLE *handles, UIN
const LARGE_INTEGER *timeout, HANDLE signal_object )
{
NTSTATUS ret;
int i, cookie;
UINT i;
int cookie;
BOOL user_apc = FALSE;
obj_handle_t obj_handles[MAXIMUM_WAIT_OBJECTS];
obj_handle_t apc_handle = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment