Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
3068d827
Commit
3068d827
authored
Apr 17, 2014
by
Marcus Meissner
Committed by
Alexandre Julliard
Apr 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use longer int in bitshift operation (Coverity).
parent
a6e53eae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
thread.c
server/thread.c
+2
-2
No files found.
server/thread.c
View file @
3068d827
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment