xtimer: Add parentheses to condition

This commit is contained in:
Joakim Nohlgård 2015-10-28 07:15:05 +01:00
parent c78fd9f4ed
commit e8f33c2ca0

View File

@ -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);
}
}