Use uint64 (thanks carlclone and Harry Porter)
This commit is contained in:
		
							parent
							
								
									7a6d57235c
								
							
						
					
					
						commit
						1d4c437ea1
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -259,7 +259,7 @@ userinit(void)
 | 
			
		|||
int
 | 
			
		||||
growproc(int n)
 | 
			
		||||
{
 | 
			
		||||
  uint sz;
 | 
			
		||||
  uint64 sz;
 | 
			
		||||
  struct proc *p = myproc();
 | 
			
		||||
 | 
			
		||||
  sz = p->sz;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -40,7 +40,7 @@ sys_wait(void)
 | 
			
		|||
uint64
 | 
			
		||||
sys_sbrk(void)
 | 
			
		||||
{
 | 
			
		||||
  int addr;
 | 
			
		||||
  uint64 addr;
 | 
			
		||||
  int n;
 | 
			
		||||
 | 
			
		||||
  if(argint(0, &n) < 0)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue