Store Nix integers as longs
So on 64-bit systems, integers are now 64-bit. Fixes #158.
This commit is contained in:
		
							parent
							
								
									297b762513
								
							
						
					
					
						commit
						d308aeaf53
					
				
					 9 changed files with 25 additions and 23 deletions
				
			
		|  | @ -75,9 +75,9 @@ std::ostream & operator << (std::ostream & str, Expr & e); | |||
| 
 | ||||
| struct ExprInt : Expr | ||||
| { | ||||
|     int n; | ||||
|     NixInt n; | ||||
|     Value v; | ||||
|     ExprInt(int n) : n(n) { mkInt(v, n); }; | ||||
|     ExprInt(NixInt n) : n(n) { mkInt(v, n); }; | ||||
|     COMMON_METHODS | ||||
|     Value * maybeThunk(EvalState & state, Env & env); | ||||
| }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue