diff options
author | Gary E. Miller <gem@rellim.com> | 2015-03-09 15:52:37 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2015-03-09 15:52:37 -0700 |
commit | c0cb4456b86779f67a59819dbd797caea6cb0b99 (patch) | |
tree | cbef94125416bfe5d6a2b7ebd4d05cef86bc42ca /subframe.c | |
parent | a2f003b7075dd6a262e1a89ff6fac327c3bef097 (diff) | |
download | gpsd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |