From e8f33c2ca0ff35c6dbdca18a736258e3b9e5efb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Wed, 28 Oct 2015 07:15:05 +0100 Subject: [PATCH] xtimer: Add parentheses to condition --- sys/xtimer/xtimer_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/xtimer/xtimer_core.c b/sys/xtimer/xtimer_core.c index 92db65faab..8bbfc111f7 100644 --- a/sys/xtimer/xtimer_core.c +++ b/sys/xtimer/xtimer_core.c @@ -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); } }