From e73d10a4dc42b2732cb3c553a788ee089912b8e9 Mon Sep 17 00:00:00 2001
From: Etienne Brateau <etienne.brateau@ensiie.fr>
Date: Sun, 8 Jul 2018 00:06:45 +0200
Subject: [PATCH] p2c: add missing parentheses

---
 psys/include/p2c/p2c.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/psys/include/p2c/p2c.h b/psys/include/p2c/p2c.h
index bb75519..51f72b2 100644
--- a/psys/include/p2c/p2c.h
+++ b/psys/include/p2c/p2c.h
@@ -181,7 +181,7 @@ typedef struct {
 /* packed arrays */   /* BEWARE: these are untested! */
 #define P_getbits_UB(a,i,n,L)   ((int)((a)[(i)>>((L)-(n))] >>   \
 				       (((~(i))&((1<<((L)-(n)))-1)) << (n)) &  \
-				       (1<<(1<<(n)))-1))
+				       ((1<<(1<<(n)))-1)))
 
 #define P_getbits_SB(a,i,n,L)   ((int)((a)[(i)>>((L)-(n))] <<   \
 				       (16 - ((((~(i))&((1<<((L)-(n)))-1))+1) <<\
-- 
GitLab