Commit 72828184 authored by Marcus Meissner's avatar Marcus Meissner Committed by Michael Stefaniuc

ntdll: Cast left shifted 1 to be ulong wide (Coverity).

Signed-off-by: 's avatarMarcus Meissner <marcus@jet.franken.de> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit de853e2b) Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent 66bef95e
......@@ -1520,7 +1520,7 @@ static NTSTATUS create_logical_proc_info(SYSTEM_LOGICAL_PROCESSOR_INFORMATION **
fclose(f);
}
else r = 0;
if(!logical_proc_info_add_by_id(data, dataex, &len, max_len, RelationProcessorPackage, r, 1 << i))
if(!logical_proc_info_add_by_id(data, dataex, &len, max_len, RelationProcessorPackage, r, (ULONG_PTR)1 << i))
{
fclose(fcpu_list);
return STATUS_NO_MEMORY;
......@@ -1534,7 +1534,7 @@ static NTSTATUS create_logical_proc_info(SYSTEM_LOGICAL_PROCESSOR_INFORMATION **
fclose(f);
}
else r = i;
if(!logical_proc_info_add_by_id(data, dataex, &len, max_len, RelationProcessorCore, r, 1 << i))
if(!logical_proc_info_add_by_id(data, dataex, &len, max_len, RelationProcessorCore, r, (ULONG_PTR)1 << i))
{
fclose(fcpu_list);
return STATUS_NO_MEMORY;
......
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