mirror of
				https://github.com/eclipse/upm.git
				synced 2025-10-31 15:15:07 +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:
		 Jon Trulson
					Jon Trulson
				
			
				
					committed by
					
						 Mihai Tudor Panu
						Mihai Tudor Panu
					
				
			
			
				
	
			
			
			 Mihai Tudor Panu
						Mihai Tudor Panu
					
				
			
						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 it was found, extract the location and the score | ||||||
|   if (rPkt[9] == ERR_OK) |   if (rPkt[9] == ERR_OK) | ||||||
|     { |     { | ||||||
|       *id = (rPkt[10] << 8) & 0xff | rPkt[11] & 0xff; |       *id = ((rPkt[10] << 8) & 0xff) | (rPkt[11] & 0xff); | ||||||
|       *score = (rPkt[12] << 8) & 0xff | rPkt[13] & 0xff; |       *score = ((rPkt[12] << 8) & 0xff) | (rPkt[13] & 0xff); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   return rPkt[9]; |   return rPkt[9]; | ||||||
| @@ -596,7 +596,7 @@ uint8_t ZFM20::match(uint16_t *score) | |||||||
|  |  | ||||||
|   getResponse(rPkt, rPktLen); |   getResponse(rPkt, rPktLen); | ||||||
|  |  | ||||||
|   *score = (rPkt[10] << 8) & 0xff | rPkt[11] & 0xff; |   *score = ((rPkt[10] << 8) & 0xff) | (rPkt[11] & 0xff); | ||||||
|  |  | ||||||
|   return rPkt[9]; |   return rPkt[9]; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user