summaryrefslogtreecommitdiff
path: root/subframe.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-03-09 15:52:37 -0700
committerGary E. Miller <gem@rellim.com>2015-03-09 15:52:37 -0700
commitc0cb4456b86779f67a59819dbd797caea6cb0b99 (patch)
treecbef94125416bfe5d6a2b7ebd4d05cef86bc42ca /subframe.c
parenta2f003b7075dd6a262e1a89ff6fac327c3bef097 (diff)
downloadgpsd-c0cb4456b86779f67a59819dbd797caea6cb0b99.tar.gz
Fix cppcheck complaints about not enough parenthesis.
Change this: A & B ? 0 : 1 To this: (A & B) ? 0 : 1 No logic or functional change.
Diffstat (limited to 'subframe.c')
-rw-r--r--subframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subframe.c b/subframe.c
index 83f7cf21..df5fa7e8 100644
--- a/subframe.c
+++ b/subframe.c
@@ -8,7 +8,7 @@
#include "gpsd.h"
/* convert unsigned to signed */
-#define uint2int( u, bit) ( u & (1<<(bit-1)) ? u - (1<<bit) : u)
+#define uint2int( u, bit) ( (u & (1<<(bit-1))) ? u - (1<<bit) : u)
/*@ -usedef @*/
gps_mask_t gpsd_interpret_subframe_raw(struct gps_device_t *session,