Fix build on 32-bit systems and macOS
Apparently, on macOS, 'long' != 'int64_t'. https://hydra.nixos.org/build/77100756
This commit is contained in:
		
							parent
							
								
									efd04888ca
								
							
						
					
					
						commit
						c2de2ff385
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -50,7 +50,7 @@ static void prim_fromTOML(EvalState & state, const Pos & pos, Value * * args, Va
 | 
			
		|||
        }
 | 
			
		||||
 | 
			
		||||
        else if (t->is_value()) {
 | 
			
		||||
            if (auto val = t->as<NixInt>())
 | 
			
		||||
            if (auto val = t->as<int64_t>())
 | 
			
		||||
                mkInt(v, val->get());
 | 
			
		||||
            else if (auto val = t->as<NixFloat>())
 | 
			
		||||
                mkFloat(v, val->get());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue