mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 13:10:04 +00:00 
			
		
		
		
	Fixing warnings in wxdata
This commit is contained in:
		
							parent
							
								
									05d795d18f
								
							
						
					
					
						commit
						3339a40780
					
				
					 17 changed files with 36 additions and 43 deletions
				
			
		|  | @ -184,8 +184,6 @@ bool RasterDataPacket::Parse(std::istream& is) | |||
| 
 | ||||
|       for (uint16_t r = 0; r < p->numberOfRows_; r++) | ||||
|       { | ||||
|          size_t rowBytesRead = 0; | ||||
| 
 | ||||
|          auto& row = p->row_[r]; | ||||
| 
 | ||||
|          is.read(reinterpret_cast<char*>(&row.numberOfBytes_), 2); | ||||
|  | @ -219,7 +217,7 @@ bool RasterDataPacket::Parse(std::istream& is) | |||
|          uint16_t binCount = | ||||
|             std::accumulate(row.data_.cbegin(), | ||||
|                             row.data_.cend(), | ||||
|                             0, | ||||
|                             static_cast<uint16_t>(0u), | ||||
|                             [](const uint16_t& a, const uint8_t& b) -> uint16_t | ||||
|                             { return a + (b >> 4); }); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat