Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Apr 24, 2018
1 parent f521b22 commit 8f780e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thread/pthread/SDL_systhread.c
Expand Up @@ -299,7 +299,7 @@ SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
int max_priority = sched_get_priority_max(policy);
sched.sched_priority = (min_priority + (max_priority - min_priority) / 2);
if (priority == SDL_THREAD_PRIORITY_HIGH) {
sched.sched_priority += (max_priority - min_priority) / 4);
sched.sched_priority += ((max_priority - min_priority) / 4);
}
}
if (pthread_setschedparam(thread, policy, &sched) != 0) {
Expand Down

0 comments on commit 8f780e7

Please sign in to comment.