Commit 3068d827 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

server: Use longer int in bitshift operation (Coverity).

parent a6e53eae
......@@ -450,10 +450,10 @@ affinity_t get_thread_affinity( struct thread *thread )
if (!sched_getaffinity( thread->unix_tid, sizeof(set), &set ))
for (i = 0; i < 8 * sizeof(mask); i++)
if (CPU_ISSET( i, &set )) mask |= 1 << i;
if (CPU_ISSET( i, &set )) mask |= (affinity_t)1 << i;
}
#endif
if (!mask) mask = ~0;
if (!mask) mask = ~(affinity_t)0;
return mask;
}
......
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