Skip to content
Snippets Groups Projects
Commit f29760fc authored by Moe Jette's avatar Moe Jette
Browse files

Add parens for clarity.

parent 14cd0a2f
No related branches found
No related tags found
No related merge requests found
...@@ -388,7 +388,7 @@ _resolve_shared_status(uint16_t user_flag, uint16_t part_enum, ...@@ -388,7 +388,7 @@ _resolve_shared_status(uint16_t user_flag, uint16_t part_enum,
* the user has to explicitly disable sharing to * the user has to explicitly disable sharing to
* get exclusive nodes. * get exclusive nodes.
*/ */
shared = user_flag == 0 ? 0 : 1; shared = (user_flag == 0) ? 0 : 1;
} else { } else {
/* The partition sharing option is only used if /* The partition sharing option is only used if
* the consumable resources plugin is NOT in use. * the consumable resources plugin is NOT in use.
...@@ -398,7 +398,7 @@ _resolve_shared_status(uint16_t user_flag, uint16_t part_enum, ...@@ -398,7 +398,7 @@ _resolve_shared_status(uint16_t user_flag, uint16_t part_enum,
else if (part_enum == SHARED_NO) /* can't share */ else if (part_enum == SHARED_NO) /* can't share */
shared = 0; shared = 0;
else else
shared = user_flag == 1 ? 1 : 0; shared = (user_flag == 1) ? 1 : 0;
} }
return shared; return shared;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment