Commit 8f780e76e16400408d5a1ad4badf2e4232b838e8

Sam Lantinga 2018-04-23T22:17:56

Fixed build

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/thread/pthread/SDL_systhread.c b/src/thread/pthread/SDL_systhread.c
index 4842d9c..28a1a58 100644
--- a/src/thread/pthread/SDL_systhread.c
+++ b/src/thread/pthread/SDL_systhread.c
@@ -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) {