From 9c3418d010fe502abbda08338b3e7ac951c69adb Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Wed, 7 Feb 2018 16:29:31 +0100 Subject: [PATCH] rlc_am: add extra brackets to macro --- lib/src/upper/rlc_am.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/upper/rlc_am.cc b/lib/src/upper/rlc_am.cc index 3f976bd91..faa9600f4 100644 --- a/lib/src/upper/rlc_am.cc +++ b/lib/src/upper/rlc_am.cc @@ -31,8 +31,8 @@ #include #define MOD 1024 -#define RX_MOD_BASE(x) (x-vr_r)%1024 -#define TX_MOD_BASE(x) (x-vt_a)%1024 +#define RX_MOD_BASE(x) ((x-vr_r)%1024) +#define TX_MOD_BASE(x) ((x-vt_a)%1024) namespace srslte {