mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* ext/sdbm/_sdbm.c (fitpair): suppress shortening warnigns.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									2a19074c65
								
							
						
					
					
						commit
						475422fac6
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -672,8 +672,8 @@ fitpair(char *pag, int need)
 | 
			
		|||
	register short *ino = (short *) pag;
 | 
			
		||||
 | 
			
		||||
	off = ((n = GET_SHORT(ino,0)) > 0) ? GET_SHORT(ino,n) : PBLKSIZ;
 | 
			
		||||
	free = off - (n + 1) * sizeof(short);
 | 
			
		||||
	need += 2 * sizeof(short);
 | 
			
		||||
	free = off - (n + 1) * (int)sizeof(short);
 | 
			
		||||
	need += 2 * (int)sizeof(short);
 | 
			
		||||
 | 
			
		||||
	debug(("free %d need %d\n", free, need));
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue