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

This commit is contained in:
Marcus Meissner 2014-04-17 07:38:18 +02:00 committed by Alexandre Julliard
parent a6e53eaed2
commit 3068d827da
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}