mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
zfm20: fix clang compiler warnings regarding |/& precedence
Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
06b9e7b6f2
commit
9d63545d44
@ -574,8 +574,8 @@ uint8_t ZFM20::search(int slot, uint16_t *id, uint16_t *score)
|
||||
// if it was found, extract the location and the score
|
||||
if (rPkt[9] == ERR_OK)
|
||||
{
|
||||
*id = (rPkt[10] << 8) & 0xff | rPkt[11] & 0xff;
|
||||
*score = (rPkt[12] << 8) & 0xff | rPkt[13] & 0xff;
|
||||
*id = ((rPkt[10] << 8) & 0xff) | (rPkt[11] & 0xff);
|
||||
*score = ((rPkt[12] << 8) & 0xff) | (rPkt[13] & 0xff);
|
||||
}
|
||||
|
||||
return rPkt[9];
|
||||
@ -596,7 +596,7 @@ uint8_t ZFM20::match(uint16_t *score)
|
||||
|
||||
getResponse(rPkt, rPktLen);
|
||||
|
||||
*score = (rPkt[10] << 8) & 0xff | rPkt[11] & 0xff;
|
||||
*score = ((rPkt[10] << 8) & 0xff) | (rPkt[11] & 0xff);
|
||||
|
||||
return rPkt[9];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user