xtimer: Add parentheses to condition
This commit is contained in:
parent
c78fd9f4ed
commit
e8f33c2ca0
@ -307,10 +307,10 @@ static inline int _this_high_period(uint32_t target) {
|
||||
static inline xtimer_t *_compare(xtimer_t *a, xtimer_t *b)
|
||||
{
|
||||
if (a && b) {
|
||||
return a->target <= b->target ? a : b;
|
||||
return ((a->target <= b->target) ? a : b);
|
||||
}
|
||||
else {
|
||||
return a ? a : b;
|
||||
return (a ? a : b);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user