Declare variables as size_t rather than unsigned.
Modify `unsigned front, front1, back;` to `size_t front, front1, back;`
This commit is contained in:
		
							parent
							
								
									f70b2ef3b8
								
							
						
					
					
						commit
						34a9f24dba
					
				@ -129,7 +129,7 @@ namespace spdlog
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			bool is_empty()
 | 
								bool is_empty()
 | 
				
			||||||
			{				
 | 
								{				
 | 
				
			||||||
				unsigned front, front1, back;
 | 
									size_t front, front1, back;
 | 
				
			||||||
				// try to take a consistent snapshot of front/tail.
 | 
									// try to take a consistent snapshot of front/tail.
 | 
				
			||||||
				do {					
 | 
									do {					
 | 
				
			||||||
					front = enqueue_pos_.load(std::memory_order_acquire);
 | 
										front = enqueue_pos_.load(std::memory_order_acquire);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user