bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH gnumach] smp: Fix parenthesis around logic expression value


From: Damien Zammit
Subject: [PATCH gnumach] smp: Fix parenthesis around logic expression value
Date: Sun, 11 Feb 2024 07:09:20 +0000

---
 kern/thread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kern/thread.c b/kern/thread.c
index 38287581..de9d1982 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -1921,7 +1921,7 @@ Restart:
         *      Reset policy and priorities if needed.
         */
 #if    MACH_FIXPRI
-       if (thread->policy & new_pset->policies == 0) {
+       if ((thread->policy & new_pset->policies) == 0) {
            thread->policy = POLICY_TIMESHARE;
            recompute_pri = TRUE;
        }
-- 
2.43.0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]