mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 12:10:06 +00:00 
			
		
		
		
	General GCC compilation fixes
This commit is contained in:
		
							parent
							
								
									c7aba95233
								
							
						
					
					
						commit
						023688b746
					
				
					 19 changed files with 57 additions and 53 deletions
				
			
		|  | @ -64,7 +64,7 @@ DigitalRadialDataArrayPacket::DigitalRadialDataArrayPacket() : | |||
| DigitalRadialDataArrayPacket::~DigitalRadialDataArrayPacket() = default; | ||||
| 
 | ||||
| DigitalRadialDataArrayPacket::DigitalRadialDataArrayPacket( | ||||
|    DigitalRadialDataArrayPacket&&) noexcept                         = default; | ||||
|    DigitalRadialDataArrayPacket&&) noexcept = default; | ||||
| DigitalRadialDataArrayPacket& DigitalRadialDataArrayPacket::operator=( | ||||
|    DigitalRadialDataArrayPacket&&) noexcept = default; | ||||
| 
 | ||||
|  | @ -158,13 +158,13 @@ bool DigitalRadialDataArrayPacket::Parse(std::istream& is) | |||
|          logger_->warn("Invalid packet code: {}", p->packetCode_); | ||||
|          blockValid = false; | ||||
|       } | ||||
|       if (p->indexOfFirstRangeBin_ < 0 || p->indexOfFirstRangeBin_ > 230) | ||||
|       if (p->indexOfFirstRangeBin_ > 230) | ||||
|       { | ||||
|          logger_->warn("Invalid index of first range bin: {}", | ||||
|                        p->indexOfFirstRangeBin_); | ||||
|          blockValid = false; | ||||
|       } | ||||
|       if (p->numberOfRangeBins_ < 0 || p->numberOfRangeBins_ > 1840) | ||||
|       if (p->numberOfRangeBins_ > 1840) | ||||
|       { | ||||
|          logger_->warn("Invalid number of range bins: {}", | ||||
|                        p->numberOfRangeBins_); | ||||
|  |  | |||
|  | @ -102,11 +102,11 @@ bool VectorArrowDataPacket::Parse(std::istream& is) | |||
| 
 | ||||
|    // The number of vectors is equal to the size divided by the number of bytes
 | ||||
|    // in a vector
 | ||||
|    size_t vectorCount = p->lengthOfBlock_ / 10; | ||||
|    std::size_t vectorCount = p->lengthOfBlock_ / 10; | ||||
| 
 | ||||
|    p->arrow_.resize(vectorCount); | ||||
| 
 | ||||
|    for (int v = 0; v < vectorCount && !is.eof(); v++) | ||||
|    for (std::size_t v = 0; v < vectorCount && !is.eof(); v++) | ||||
|    { | ||||
|       VectorArrow& arrow = p->arrow_[v]; | ||||
| 
 | ||||
|  |  | |||
|  | @ -101,11 +101,11 @@ bool WindBarbDataPacket::Parse(std::istream& is) | |||
| 
 | ||||
|    // The number of vectors is equal to the size divided by the number of bytes
 | ||||
|    // in a vector
 | ||||
|    size_t vectorCount = p->lengthOfBlock_ / 10; | ||||
|    std::size_t vectorCount = p->lengthOfBlock_ / 10; | ||||
| 
 | ||||
|    p->windBarb_.resize(vectorCount); | ||||
| 
 | ||||
|    for (int v = 0; v < vectorCount && !is.eof(); v++) | ||||
|    for (std::size_t v = 0; v < vectorCount && !is.eof(); v++) | ||||
|    { | ||||
|       WindBarb& windBarb = p->windBarb_[v]; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat