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
				
			
		|  | @ -319,7 +319,12 @@ template<class N> bool string2Int(const string & s, N & n) | |||
|     return str && str.get() == EOF; | ||||
| } | ||||
| 
 | ||||
| string int2String(int n); | ||||
| template<class N> string int2String(N n) | ||||
| { | ||||
|     std::ostringstream str; | ||||
|     str << n; | ||||
|     return str.str(); | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| /* Return true iff `s' ends in `suffix'. */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue