mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Fix compiler warning.
This commit is contained in:
		
							parent
							
								
									7a250fea42
								
							
						
					
					
						commit
						e6c67924b0
					
				| @ -318,7 +318,8 @@ bool boundsToConstraints(SolvingState& _state) | ||||
| 				return false; | ||||
| 			if (*bounds.lower == *bounds.upper) | ||||
| 			{ | ||||
| 				vector<rational> c(columns); | ||||
| 				LinearExpression c; | ||||
| 				c.resize(columns); | ||||
| 				c[0] = *bounds.lower; | ||||
| 				c[index] = bigint(1); | ||||
| 				_state.constraints.emplace_back(Constraint{move(c), true}); | ||||
| @ -327,14 +328,16 @@ bool boundsToConstraints(SolvingState& _state) | ||||
| 		} | ||||
| 		if (bounds.lower && *bounds.lower > 0) | ||||
| 		{ | ||||
| 			vector<rational> c(columns); | ||||
| 			LinearExpression c; | ||||
| 			c.resize(columns); | ||||
| 			c[0] = -*bounds.lower; | ||||
| 			c[index] = bigint(-1); | ||||
| 			_state.constraints.emplace_back(Constraint{move(c), false}); | ||||
| 		} | ||||
| 		if (bounds.upper) | ||||
| 		{ | ||||
| 			vector<rational> c(columns); | ||||
| 			LinearExpression c; | ||||
| 			c.resize(columns); | ||||
| 			c[0] = *bounds.upper; | ||||
| 			c[index] = bigint(1); | ||||
| 			_state.constraints.emplace_back(Constraint{move(c), false}); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user